Microsoft Entra ID Synchronization Failures
Symptom
Testing or saving a Microsoft Entra ID API Consumer under Directory Services fails, or a synchronization job completes without errors but imports no users or groups, or imports users with duplicate or mismatched usernames. This can occur when configuring a new API Consumer or after a previously working synchronization job stops functioning.
Cause
Expired or Invalid Client Secret
The client secret saved in the Client Secret Value field of the API Consumer no longer authenticates. This happens when the client secret expires, or someone regenerates or revokes it on the application registration in Microsoft Entra ID without updating Netwrix Endpoint Protector.
Incorrect Application (Client) ID or Tenant ID
The Application (Client) ID or Tenant ID field on the API Consumer does not match the Application (client) ID or Directory (tenant) ID of the application registration. This happens when someone copied the values incorrectly, or deleted and recreated the application registration with new identifiers.
Missing or Unconsented Microsoft Graph API Permissions
The application registration is missing one or more of the required Microsoft Graph application permissions (Directory.Read.All, Group.Read.All, User.Read.All), or an administrator has not granted admin consent for them.
Network or Firewall Restrictions to Microsoft Graph
A firewall or proxy configuration blocks outbound HTTPS traffic from the Endpoint Protector Server to the Microsoft endpoints that your Azure Cloud Environment setting uses: login.microsoftonline.com and graph.microsoft.com for Commercial, or login.microsoftonline.us and graph.microsoft.us for GCC High.
Typos or Misconfiguration in Endpoint Protector Entra ID Settings
A manual entry error in the API Consumer name, Application (Client) ID, Tenant ID, or Client Secret Value fields causes the connection to fail even though the application registration itself is configured correctly. In hybrid environments, an incorrectly set Map on-premises users switch can also cause duplicate or mismatched usernames between the on-premises Active Directory and Microsoft Entra ID.
Resolution
Verify the Client Secret
- In the Microsoft Entra ID application registration, go to Certificates & Secrets and confirm the client secret has not expired.
- If the secret has expired or was regenerated, create a new client secret and copy the Value (not the Secret ID) immediately, since it is hidden after navigating away.
- In Directory Services > Microsoft Entra ID, edit the API Consumer and update the Client Secret Value field with the new secret.
- Click Test to confirm the connection succeeds.
Verify the Application (Client) ID and Tenant ID
- In the Microsoft Entra ID application registration, go to the Overview (Essentials) section and confirm the Application (client) ID and Directory (tenant) ID values.
- In Directory Services > Microsoft Entra ID, edit the API Consumer and confirm the Application (Client) ID and Tenant ID fields match these values exactly, with no extra spaces or characters.
- Click Test to confirm the connection succeeds.
Verify Microsoft Graph API Permissions
- In the Microsoft Entra ID application registration, go to API Permissions and confirm the following Application permissions are present:
Directory.Read.All,Group.Read.All,User.Read.All. - Confirm the status column shows that an administrator granted admin consent for each permission. If not, click Grant admin consent for the directory.
- Re-test the API Consumer connection in Directory Services > Microsoft Entra ID after granting consent.
Verify Network and Firewall Connectivity to Microsoft Graph
- Confirm that any firewall or proxy allows outbound HTTPS (port 443) from the Endpoint Protector Server to the endpoints for your Azure Cloud Environment:
- Commercial:
login.microsoftonline.comandgraph.microsoft.com - GCC High:
login.microsoftonline.usandgraph.microsoft.us
- Commercial:
- Confirm no proxy, VPN, or network policy change has blocked the Endpoint Protector Server from reaching Microsoft Graph since the connection last worked.
- In Directory Services > Microsoft Entra ID, edit the API Consumer and click Test to confirm the connection succeeds.
Review Endpoint Protector Entra ID Configuration for Typos
- Re-enter the Application (Client) ID, Tenant ID, and Client Secret Value fields on the API Consumer, confirming there are no extra spaces or truncated characters.
- In hybrid environments, confirm the Map on-premises users switch matches the intended behavior: unmarked uses the
userPrincipalNameattribute, marked uses theonPremisesSamAccountNameattribute. - Click Test after each change to confirm the connection succeeds before saving.