Edit

Share via


Index the employeeId attribute in Active Directory to improve provisioning performance

Microsoft Entra inbound provisioning allows organizations to automate user account creation and updates in on-premises Active Directory (AD) environments from sources such as Workday, SuccessFactors, or API-driven integrations. To ensure smooth and efficient synchronization, it's important to understand the role of attribute indexing—particularly the employeeId attribute, which is used as the default matching property during provisioning. This article provides guidance for optimizing synchronization performance with the employeeId attribute.

Why indexing employeeId is needed

By default, the employeeId attribute isn't indexed in Active Directory. However, we recommend indexing this attribute as it's used as the primary property to match identities between Microsoft Entra and AD during both full and incremental provisioning runs. Without indexing, directory lookups may be slower as your user base grows, potentially impacting synchronization performance and increasing provisioning times. Indexing ensures that these operations are completed efficiently and reliably.

Scope: Applies to multiple provisioning scenarios

This guidance applies to all Microsoft Entra inbound provisioning scenarios that synchronize identities to on-premises AD, including:

  • Workday-to-Active Directory provisioning
  • SuccessFactors-to-Active Directory provisioning
  • API-driven inbound provisioning-to-Active Directory

Multiple matching properties

If your provisioning setup uses more than one matching property (for example, employeeId and mail), be sure to check that each property is indexed in Active Directory. Indexing all matching properties used in synchronization helps maintain optimal performance and reduces the risk of delays or timeouts during provisioning runs.

Impact on Active Directory domain storage

Enabling indexing for other attributes such as employeeId increases storage requirements within your AD domain. While the storage impact is typically modest, it's important to consider this when planning large-scale deployments or when working with domains that have limited available resources.

How to use the AD schema snap-in to index an attribute (for example, employeeId)

Prerequisites:

  • Ensure you're a member of the Schema Admins group in Active Directory.
  • The AD Schema snap-in isn't registered by default; you must register it first.

Register the schema snap-in

  1. Open a Command Prompt as a Windows Server Administrator.
  2. Run: regsvr32 schmmgmt.dll
    You should see a confirmation dialog that the registration succeeded.

Open the schema snap-in

  1. Press Win + R, type mmc, then press Enter to open the Microsoft Management Console.
  2. In the console, go to File > Add/Remove Snap-in.
  3. Select Active Directory Schema from the list, then click Add.
  4. Click OK.

Locate the attribute to index

  1. In the left pane, expand Active Directory Schema and select Attributes.
  2. Scroll through the list to find the attribute you want to index (for example, employeeId).

Edit attribute properties

  1. Right-click the attribute (for example, employeeId), then select Properties.
  2. In the properties dialog, check the box labeled Index this attribute (or similar wording, depending on your Windows Server version).
    Screenshot of the employee ID attribute properties.

Apply and replicate changes

Click OK to save your changes.
Schema changes are replicated to all domain controllers. It may take some time for the change to propagate.

Next steps