sync-rule-error-function-triggered error is due to the sourceanchor attribute has changed and why this caused the issue and how to Troubleshoot and fix the object which is not synchronizing to Azure AD, before that you have to understand sourceAnchor and immutable attributes and how this used on Azure AD symbolization process
sourceAnchor attribute is defined as an attribute immutable during the initial object sync, which is same on on-premises active directory and in Azure AD, by default object SID been used to generate sourceAnchor which can’t be changed after the initial object export
While doing object initial export sourceAnchor value will be updated to cloudSourceAnchor attribute on metaverse (MV), if any change in sourceAnchor value after the initial sync then this won’t match with cloudSourceAnchor attribute on MV, Join rule will found this conflict and trigger the error sourceAnchor attribute has changed
Now, why sourceAnchor value changed? As the object SID will not get changed during the lifetime of an AD object and why we are getting “sync-rule-error-function-triggered” error?
In my experience this is common if you have multiple forest which is synchronized to Azure AD, sourceAnchor will be generated with users primary Domain account and it picks the users other Domain accounts object SID which is causing this issue
How to check this
- Select “sync-rule-error-function-triggered” error
- click the button Stack Trace
- This will provide detailed information for the error
- Check Object SID
- And compare with AD Object SID
- If it’s not matching then compare the SID with users other Domain Object
- Then the Conflicting Object needs to be deleted or moved to non-sync OU to fix the issue
- or sync rule needs to be updated to fix the issue
Also Read: Can we Replace on-premise Domain Controller with Cloud-based Active Directory
If it’s for contact object then there should have been duplicate contact object with same details on other Domains, in a complex multi Forest/Domain environment this is normal, you have to plan correctly and update the sync rules to avoid sync-rule-error-function-triggered error
Also Read: How to Block user access to Azure portal