Said It Here

Sync agent stops with Error 5 Access Denied after internet outage

Cloud sync agent services on domain controllers fail with an Error 5 Access Denied message following a network interruption. This blocks synchronization and requires adding the group managed service account to the built-in Administrator group to restore functionality.

What people tried

Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.

  1. 1
    Add the service account to the built-in Administrator group in Active Directory
  2. 2
    Move the synchronization agent to a member server instead of a domain controller
  3. 3
    Spun up an internal bridge to coordinate responses.

In their words

Unedited, most upvoted first, each linked to the thread it came from.

Anyone experiencing issues accessing Azure or Office portals?source ↗

rockett15 · r/sysadmin · 27 upvotes

So, I had the cloud sync agent working for about 8 months or so. Yesterday, there was an internet outage, and both agent (on 2 DCs) services stopped working (each agent on each DC). The service would not run- Error 5: Access Denied.source ↗

The only thing that works is to add the gmsa to the built-in Administrator group in AD.source ↗

Distinct_Race_7056 · r/sysadmin · 1 upvotes

Seeing this as well, SSO issues from this.source ↗

__I_use_arch_btw__ · r/sysadmin · 1 upvotes

Yup, getting 503 errors when trying to auth into any O365 service or admin center.source ↗

kiwininja · r/sysadmin · 1 upvotes

We're seeing some too, just spun up an internal bridge but its sounding like a bigger issue than just us.source ↗

Cagn · r/sysadmin · 1 upvotes

We're having the same issue - lots of SSO issues, 503, Bad Gateway, etc.source ↗

nickmantia · r/sysadmin · 1 upvotes

Where this came up

People with this problem also raised