Anonymize
Requirements (self-hosted)
10.0.x
8.1
8.2
11.0.x
8.2
8.4
A GLPI Network BASIC subscription (or higher) is required. This plugin is also available for all GLPI Network Cloud instances.
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
Entity fields
name
entities_id
comment
level
sons_cache
ancestors_cache
address
postcode
town
state
country
website
phonenumber
fax
email
admin_email
admin_email_name
from_email
from_email_name
noreply_email
noreply_email_name
replyto_email
replyto_email_name
notification_subject_tag
ldap_dn
tag
authldaps_id
mail_domain
entity_ldapfilter
mailing_signature
cartridges_alert_repeat
consumables_alert_repeat
use_licenses_alert
send_licenses_alert_before_delay
use_certificates_alert
send_certificates_alert_before_delay
certificates_alert_repeat_interval
use_contracts_alert
send_contracts_alert_before_delay
use_infocoms_alert
send_infocoms_alert_before_delay
use_reservations_alert
use_domains_alert
send_domains_alert_close_expiries_delay
send_domains_alert_expired_delay
autoclose_delay
autopurge_delay
notclosed_delay
calendars_strategy
calendars_id
auto_assign_mode
tickettype
max_closedate
inquest_config
inquest_rate
inquest_delay
inquest_URL
autofill_warranty_date
autofill_use_date
autofill_buy_date
autofill_delivery_date
autofill_order_date
tickettemplates_strategy
tickettemplates_id
changetemplates_strategy
changetemplates_id
problemtemplates_strategy
problemtemplates_id
entities_strategy_software
entities_id_software
default_contract_alert
default_infocom_alert
default_cartridges_alarm_threshold
default_consumables_alarm_threshold
delay_send_emails
is_notif_enable_default
inquest_duration
date_mod
date_creation
autofill_decommission_date
suppliers_as_private
anonymize_support_agents
display_users_initials
contracts_strategy_default
contracts_id_default
enable_custom_css
custom_css_code
latitude
longitude
altitude
transfers_strategy
transfers_id
agent_base_url
Computer
Computer fields
entities_id
name
serial
otherserial
contact
contact_num
users_id_tech
groups_id_tech
comment
date_mod
autoupdatesystems_id
locations_id
networks_id
computermodels_id
computertypes_id
template_name
manufacturers_id
users_id
groups_id
states_id
ticket_tco
uuid
date_creation
last_inventory_update
last_boot
User
User fields
name
password
password_last_update
phone
phone2
mobile
realname
firstname
locations_id
language
use_mode
is_active
comment
auths_id
authtype
last_login
date_mod
date_sync
profiles_id
entities_id
usertitles_id
usercategories_id
password_forget_token
password_forget_token_date
user_dn
personal_token
personal_token_date
api_token
api_token_date
cookie_token
cookie_token_date
isd_ldap
picture
begin_date
end_date
page_layout
fold_menu
fold_search
savedsearches_pinned
timeline_order
itil_layout
richtext_layout
date_creation
groups_id
users_id_supervisor
timezone
default_central_tab
nickname
timeline_action_btn_layout
timeline_date_format
use_flat_dropdowntree_on_search_result
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.

You cannot change any values other than those linked to the type of element you are in. For example, you will be able to modify all email addresses in the database via the Email profile, but you will not be able to modify all user phone number via this 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.

"To be adapted If your profile concerns entities, go to Administration > Entities and repeat the operation for the entities concerned. Do the same for computers, email, etc.
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:
Run profile X on all objects / on one object:
Run default profile type X on all objects / on one object :
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
Remember to refer to the profile application section to apply your changes.
Other anonymisable data (profile creation)
Agents
Agent fields
deviceid
entities_id
name
agenttypes_id
last_contact
version
locked
itemtype
items_id
useragent
tag
port
threads_networkdiscovery
threads_networkinventory
timeout_networkdiscovery
timeout_networkinventory
remote_addr
use_module_wake_on_lan
use_module_computer_inventory
use_module_esx_remote_inventory
use_module_remote_inventory
use_module_network_inventory
use_module_network_discovery
use_module_package_deployment
use_module_collect_data
Appliances
Appliances fields
entities_id
Garder
name
appliancetypes_id
comment
locations_id
manufacturers_id
applianceenvironments_id
users_id
users_id_tech
groups_id
groups_id_tech
date_mod
date_creation
states_id
externalidentifier
serial
otherserial
is_helpdesk_visible
pictures
contact
contact_num
Budgets
Budgets fields
name
entities_id
comment
begin_date
end_date
value
template_name
date_mod
date_creation
locations_id
budgettypes_id
Cables
User fields
name
entities_id
itemtype_endpoint_a
itemtype_endpoint_b
items_id_endpoint_a
items_id_endpoint_b
socketmodels_id_endpoint_a
socketmodels_id_endpoint_b
sockets_id_endpoint_a
sockets_id_endpoint_b
cablestrands_id
color
otherserial
states_id
users_id_tech
cabletypes_id
comment
date_mod
date_creation
Changes
Changes fields
name
entities_id
status
content
date_mod
date
solvedate
closedate
time_to_resolve
users_id_recipient
users_id_lastupdater
urgency
impact
priority
itilcategories_id
impactcontent
controlistcontent
rolloutplancontent
backoutplancontent
checklistcontent
global_validation
validation_percent
actiontime
begin_waiting_date
waiting_duration
close_delay_stat
solve_delay_stat
date_creation
locations_i
Certificates
Certificates fields
name
serial
otherserial
entities_id
comment
template_name
certificatetypes_id
dns_name
dns_suffix
users_id_tech
groups_id_tech
locations_id
manufacturers_id
contact
contact_num
users_id
groups_id
is_autosign
date_expiration
states_id
command
certificate_request
certificate_item
date_creation
date_mod
Clusters
Clusters fields
name
serial
otherserial
entities_id
comment
template_name
certificatetypes_id
dns_name
dns_suffix
users_id_tech
groups_id_tech
locations_id
manufacturers_id
contact
contact_num
users_id
groups_id
is_autosign
date_expiration
states_id
command
certificate_request
certificate_item
date_creation
date_mod
Contacts
Contacts fields
name
firstname
phone
phone2
mobile
fax
email
contacttypes_id
comment
usertitles_id
address
postcode
town
state
country
date_mod
date_creation
pictures
Databases
Databases fields
entities_id
name
size
databaseinstances_id
is_onbackup
is_active
date_creation
date_mod
date_update
date_lastbackup
Datacenters
Server rooms
Server rooms fields
name
entities_id
locations_id
vis_cols
vis_rows
blueprint
datacenters_id
date_mod
date_creation
Documents
Documents fields
name
filename
filepath
documentcategories_id
mime
date_mod
comment
link
users_id
tickets_id
sha1sum
is_blacklisted
tag
date_creation
Domains
Domains fields
name
entities_id
domaintypes_id
date_expiration
date_domaincreation
users_id_tech
groups_id_tech
comment
template_name
is_active
date_mod
date_creation
Enclosures
Enclosures fields
name
entities_id
locations_id
serial
otherserial
enclosuremodels_id
users_id_tech
groups_id_tech
template_name
orientation
power_supplies
states_id
comment
manufacturers_id
date_mod
date_creation
Groups
Groups fields
entities_id
name
comment
ldap_field
ldap_value
ldap_group_dn
date_mod
groups_id
level
ancestors_cache
sons_cache
is_requester
is_watcher
is_assign
is_task
is_notify
is_itemgroup
is_usergroup
is_manager
date_creation
Knowledge base
ITIL Categories
ITIL Categories fields
entities_id
itilcategories_id
name
comment
level
knowbaseitemcategories_id
users_id
groups_id
code
ancestors_cache
sons_cache
is_helpdeskvisible
tickettemplates_id_incident
tickettemplates_id_demand
changetemplates_id
problemtemplates_id
is_incident
is_request
is_problem
is_change
date_mod
date_creation
Followups
Followups fields
itemtype
items_id
date
users_id
users_id_editor
content
is_private
requesttypes_id
date_mod
date_creation
timeline_position
sourceitems_id
sourceof_items_id
Followups templates
Followups templates fields
date_creation
date_mod
entities_id
name
content
requesttypes_id
is_private
comment
Solutions
Solutions fields
itemtype
Keep
items_id
solutiontypes_id
solutiontype_name
content
date_creation
date_mod
date_approval
users_id
user_name
users_id_editor
users_id_approval
user_name_approval
status
itilfollowups_id
Lines
Lines fields
name
entities_id
caller_num
caller_name
users_id
groups_id
lineoperators_id
locations_id
states_id
linetypes_id
date_creation
date_mod
comment
Locations
Locations fields
entities_id
name
locations_id
comment
level
ancestors_cache
sons_cache
address
postcode
town
state
country
building
room
latitude
longitude
altitude
date_mod
date_creation
Monitors
Monitors fields
entities_id
name
date_mod
contact
contact_num
users_id_tech
groups_id_tech
comment
serial
otherserial
size
have_micro
have_speaker
have_subd
have_bnc
have_dvi
have_pivot
have_hdmi
have_displayport
locations_id
monitortypes_id
monitormodels_id
manufacturers_id
is_global
template_name
users_id
groups_id
states_id
ticket_tco
autoupdatesystems_id
uuid
date_creation