Overview
This document explains how to configure configure custom identities that will be collected for privacy requests.
Configure custom identities via the Privacy Center
To add custom identities that will be collected for privacy requests, please add them to the Privacy Center's config.json file.
"identity_inputs": {
"email": "required",
"phone": "optional",
"loyalty_id": {"label": "Loyalty ID"}
}
If included, custom identities will be required for every privacy request. The label
will be used when the custom identity is displayed in the UI, either the Privacy Center or Admin UI.
Privacy Center
Admin UI
Including custom identities via API
If you are not using the Privacy Center or would like to include custom identities directly in privacy requests submitted via the API, you can include them like this:
[
{
"policy_key": "default_access_policy",
"identity": {
"email": "user@example.com",
"loyalty_id": {
"label": "Loyalty ID",
"value": "CH-1"
}
}
}
]
Each custom identity must include the label
for display purposes, and the value
for the custom identity.
Using custom identities
All you need to do to start using custom identities is to include them in your datasets. Custom identities are included in a field's metadata in the same way as the default identities. The value will correspond to the key
for the custom identity, in the example we've been using, the value would be loyalty_id
.
collections:
- name: loyalty
fields:
- name: id
data_categories: [user.unique_id]
fides_meta:
identity: loyalty_id
Assuming this dataset is associated with a Postgres integration, the resulting select query would be:
SELECT * FROM loyalty WHERE id = {{loyalty_id}}