Photo by Shagal Sajid / Unsplash

Refresh gMSA permissions for Entra Cloud Sync

Bastien Perez
Bastien Perez
· 1 min read

Table of Contents

No matching heading

Problem

If you add or remove Active Directory permissions on the gMSA account used by Microsoft Entra Cloud Sync provAgentgMSA ,the agent may not pick up the changes immediately.

This can affect any scenario where the provisioning agent uses this gMSA account to access Active Directory, such as:

  • Microsoft Entra Cloud Sync
  • Group provisioning / group writeback to Active Directory
  • Workday inbound provisioning to Active Directory

The service continues running with its existing security context, so it may not see newly granted permissions, or may continue behaving as if removed permissions were still available.

When using outdated Active Directory permissions on the gMSA account, the provisioning agent may return the HybridSynchronizationActiveDirectoryInsufficientAccessRights error even after permissions have been updated.

Solution

To force the provisioning agent to reload the gMSA security context, restart the AADConnectProvisioningAgent (Microsoft Azure AD Connect Provisioning service).

Using PowerShell with local administrator privileges:

Restart-Service AADConnectProvisioningAgent

Or from the Services console:

  1. Open services.msc
  2. Find Microsoft Azure AD Connect Provisioning
  3. Restart the service

After the service restarts, the agent runs with the refreshed security context of the gMSA account and should take the updated Active Directory permissions into account.

Enjoyed this article?
If you found it useful, consider supporting my work with a small tip.
Buy me a coffee
Microsoft 365

Bastien Perez

Freelance Microsoft 365 - Active Directory - Modern Workplace

Comments