<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
User Attributes Failing to Update from AD Incremental Imports - Import Results Show "0 users scanned"
Okta Classic Engine
Okta Identity Engine
Directories
Overview

This article provides troubleshooting steps for an issue where an Incremental Import from Active Directory (AD) into Okta reports “0 users scanned,” even though a user in AD has been updated. Consequently, the user's updated profile information is not imported into Okta. Full Imports successfully update the user.

Applies To
  • Active Directory (AD)
  • Okta Active Directory Agent
  • Incremental Imports
  • User Profile Updates
Cause

The root cause of this issue can be that the Okta AD Agent's service account has insufficient read permissions on the Active Directory objects.

Details:

  • Incremental Imports rely on the uSNChanged attribute in Active Directory to identify users whose profiles have been updated since the last import.

  • The AD Agent performs an LDAP query targeting users whose uSNChanged value falls within the range of the last successful import and the current import start time.

    • Example Query structure: 

      (&(&(objectClass=user))(uSNChanged>=X)(uSNChanged<=Y))
  • If the AD service account has limited read permissions and is unable to view the uSNChanged attribute value, Okta cannot determine that the user has been updated.

  • As a result, the user is not scanned during the Incremental Import, leading to the “0 users scanned” result for that specific Domain Controller scan.

  • Full Imports successfully update the user because they do not rely on the uSNChanged attribute to detect changes; they scan and process all synchronized users.

NOTE: If user attributes are not updating during an Incremental Import, and the service account permissions are correct, the issue may be related to constructed attributes. Changes to constructed attributes (whose values are calculated on demand by AD) do not update the uSNChanged value, and thus are not detected by Incremental Imports.

Solution

The solution is to ensure the Active Directory service account used by the Okta AD Agent has sufficient read permissions for all synchronized AD objects, specifically the uSNChanged attribute.

 

  1. Test Service Account Read Permissions

To confirm if the Okta AD service account can read the necessary attribute, perform the following test:

    1. Open Active Directory Users and Computers (ADUC) as the Okta Service Account.
    2. Ensure Advanced Features are enabled in the ADUC View menu.
    3. Navigate to and open the properties of a user who failed to update during an incremental import.
    4. Select the Attribute Editor tab.
    5. Locate the uSNChanged attribute.
    6. If the Value column for uSNChanged is not displayed (for example, it is empty or shows <Not Set>), the service account is confirmed to be lacking sufficient read permissions for this critical attribute.

 

  1. Verify and Update Service Account Permissions

Ensure the Okta AD Agent service account has the necessary permissions.

    • The service account must have Read all permissions for all synchronized AD objects (Users, Groups, Organizational Units).
    • Consult with Active Directory administrators to confirm the service account has the Read Property permission specifically for the uSNChanged attribute on the relevant user objects.
    • After adjusting permissions, restart the AD Agent service on all AD Agent servers. This will ensure the new permissions take effect. 
  1. Force a Full Import to Resolve Pending Updates

Once the permissions are confirmed and corrected, an administrator should run a Full Import to ensure any pending updates missed by previous incremental imports are processed.

    1. Log in to the Okta Admin Console.
    2. Go to Directory > Directory Integrations.
    3. Select the relevant Active Directory integration.
    4. Navigate to the Import tab.
    5. Click Import Now.
    6. Select the Full Import option.
    7. Click Import.

 

  1. Test Incremental Import

After the Full Import is complete and the service account permissions are verified:

    1. Update an attribute for a test user in Active Directory.
    2. Run an Incremental Import in Okta.
    3. Verify that the import results show a value greater than "0 users scanned" and that the test user's Okta profile is successfully updated.

 

Related References

Loading
User Attributes Failing to Update from AD Incremental Imports - Import Results Show "0 users scanned"