Anonymize
Requirements (on-premise)
10.0.x
8.1
8.2
11.0.0
8.2
8.4
Install the plugin
Go to the marketplace. Download and install the "[Anonymize]{.title-ref}" plugin.

Choice of profile
Anonymisation works by profile. There are 4 profiles already created. When you select a profile, a certain amount of data is already set. They can, of course, be modified.
Go to Administration > Anonymization profile and select the profile best suited to your needs:
The 4 profiles you will find are :
Email
Entity
Computer
User profile

Anonymisable data per profile (predefined)
Each profile has an element assigned to it. You will need to define the value of each attribute that it will be able to anonymise (or not)

Email
Entity
Computer
User
Application strategy
Several strategies are available for each element field (e.g.Last name, First name, Serial number, Location, Status, etc.):
Keep the value
Delete the value
Replace with a fixed value
Replace with a standard random value
Replace with a realistic random value
History
Each profile allows you to choose the treatment to be applied to the history of items:
Do nothing
Clean up values
Clean up recent values and delete the rest
Delete
Global search
You can ask GLPI to anoymise an attribute in the whole database and not only in the type of element you are in. The option attributes to search and replace in others objects is at the very bottom of your profile.

Applying the profile
Once you have completed your profile, you need to apply it. It can be applied using 2 methods:
Massive action via the web interface (cloud and on-premise)
In CLI (only on-premise)
Mass action (Cloud and on-premise)
In our example, we will be anonymising [user data]{.title-ref}.
Go to Administration > Users. Select the user(s) you wish to anonymise.
Click on Actions then anonymise selected items.

Via CLI (on-premise only)
Go to your GLPI folder ([/var/www/glpi]{.title-ref} or other depending on your configuration):
Run all default profiles on all objects:
$ php bin/console glpi:plugin:anonymize --all
Run profile X on all objects / on one object:
$ php bin/console glpi:plugin:anonymize --profile=X $ php bin/console glpi:plugin:anonymize --profile=X --item-id=X
Run default profile type X on all objects / on one object :
$ php bin/console glpi:plugin:anonymize --itemtype=X $ php bin/console glpi:plugin:anonymize --itemtype=X --item-id=X
Creating a profile
You can create a profile to anonymise other data than that mentioned above.
Go to Administration > Anonymisation profile
Click on Add
Name your profile
Choose from the list of Element types (agent, domain, etc.)
Select the treatment of the History
Set the parameters for each field
Click on Add
Other anonymisable data (profile creation)
Agents
Appliances
Budgets
Cables
Changes
Certificates
Clusters
Contacts
Databases
Datacenters
Server rooms
Documents
Domains
Enclosures
Groups
Knowledge base
ITIL Categories
Followups
Followups templates
Solutions
Lines
Locations
Monitors
Network devices
PDUs
Projects
Projects tasks
Devices
Phones
Printers
Problems
Racks
Rules
Saved searches
Software
Licenses
Solutions templates
Solutions types
Suppliers
Task categories
Task templates
Tickets
Ticket tasks
Ticket templates
FAQ
If you have any questions about using the plugin, please consult our FAQ
Last updated
Was this helpful?