---
title: "Manage identity rules"
slug: "manage-identity-rules"
abstract: "Create and delete identity rules in SitecoreAI to configure identity resolution."
---
# Manage identity rules

> [!important]
> Feature availability is part of a phased rollout. Your organization may not see this functionality yet. It will become available when your environment is included in the rollout.

> [!note]
> **Before you begin**
> -   You must be an *Organization Admin* or *Organization Owner* in your Sitecore Cloud Portal organization.

Identity rules define which identifying information is used in the process of [identity resolution](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/identity-resolution.html "Identity resolution") to recognize and match site visitor identities.

## Create an identity rule

You create an identity rule [after](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/identity-resolution.html#UUID-5c77e70b-de15-9174-67bd-eb2870570ee5_section-id235308846512886 "Setting up identity resolution") your organization starts capturing `IDENTITY` events. Every identity rule you create is added at the bottom of the identity rules list. When multiple identity rules exist, SitecoreAI evaluates them in order, starting with the rule at the top of the list.

> [!warning]
> If you want to add more than one identity rule, you must add them in the order you want them prioritized, starting with the identity rule with the highest priority. If you want to change the priority of the identity rules, you must [delete](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/identity-resolution/manage-identity-rules.html#delete-an-identity-rule "Delete an identity rule") the identity rules and add them again in order of priority.
>
> Every time you create a new identity rule, you must contact Sitecore Support by [creating a support case](https://doc.sitecore.com/portal/en/developers/sitecore-cloud-portal/en/create-a-support-case.html). This is to ensure that your changes will have the desired result and that Sitecore Support is aware that they need to reindex the profiles using the new identity rules to avoid the creation of duplicate profiles when site visitors with existing profiles visit your site.

To create an identity rule:

1. In the navigation menu, click **Optimization**.
2. In the left sidebar, select **Identity rules**.
3. Click **Create rule**.
4. In the **New rule** section, complete the following fields:
    - **Rule name** - enter a descriptive name for the identity rule. For example, *Email address*.

        > [!note]
        > **Field requirements**
        > The rule name must be unique within the current SitecoreAI environment.
        >
        > The maximum length for the rule name is 100 characters. Alphanumeric characters, spaces, and common punctuation marks are accepted.

    - **Identifier** - enter the identifier provider you want SitecoreAI to use to identify the visitor. For example, *email*.

        > [!note]
        > **Field requirements**
        > The maximum length for the identifier provider is 50 characters. Only alphanumeric characters and underscores are accepted.
        >
        > The value you enter [must match](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/identity-resolution/identity-rules.html "Identity rules") the `identifiers.provider` value in the `IDENTITY` event that your organization sends to SitecoreAI. If the values don't match, SitecoreAI cannot evaluate the identity rule.

5. Click **Save**. The identity rule is activated for identity matching. The rule name immediately becomes available to search profiles by in the [**Profiles**](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/profiles/view-filter-and-search-profiles.html "View, filter, and search profiles") user interface. This way, developers can send an `IDENTITY` event to SitecoreAI and immediately verify that the corresponding profile appears in **Profiles**.

## Delete an identity rule

> [!warning]
> **Danger**
> If you want to make changes to your organization's identity rules that are already in use, for example to delete a rule or change the priority, you must contact Sitecore Support by [creating a support case](https://doc.sitecore.com/portal/en/developers/sitecore-cloud-portal/en/create-a-support-case.html). This is to ensure that your changes will have the desired result and that Sitecore Support is aware that they need to reindex the profiles using the new identity rules to avoid the creation of duplicate profiles when site visitors with existing profiles visit your site.

The most common scenario for deleting identity rules is when you are creating them for the first time, and you want to reorder them, or if you add one in error. You typically delete identity rules *before* your organization starts capturing `IDENTITY` events. You can also delete identity rules *after* your organization starts capturing `IDENTITY` events. However, if your organization has personalization configured that uses the current identity rules, deleting the rules affects personalization.

If you delete an identity rule, the corresponding identifying information captured by `IDENTITY` events, such as email addresses or phone numbers, will continue to be captured as long as you continue capturing `IDENTITY` events, but the information will no longer be used for identity resolution. Existing profiles and historical data are not deleted.

If you later decide to create the same identity rule again, identifying information captured in the period when the identity rule was deleted will not be used for identity resolution. Only the information captured after the identity rule creation time will be used for identity resolution.

> [!warning]
> At least one rule is required in the identity rules list. You can delete a rule only if there are at least two rules in the list.
>
> Identity rule deletion is permanent and cannot be undone.

When deleting an identity rule, the remaining identity rules maintain their relative order.

To delete an identity rule:

1. 2. In the navigation menu, click **Optimization**.
2. In the left sidebar, select **Identity rules**.
3. For the identity rule you want to delete, click **Delete** :mdiTrashCanOutline:.
4. In the **Delete identity rule** modal, to confirm your choice, enter the identity rule name, and then click **Delete**.

    The identity rule is deleted and is no longer used for identity resolution.