question

NinaFranchaisse-4960 avatar image
0 Votes"
NinaFranchaisse-4960 asked saldana-msft edited

Modify Sync User Attributes with Microsoft API Graph

Hello,

I have an Active Directory synchronized on an Azure AD (with Azure AD Connect) and I want to create a script that changes user attributes.
I use API Graph calls and it works for full cloud accounts but not for synchronized ones and returns the error :

“Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration.”

Do you know if it is possible to modify sync user attributes with API Graph ?

Thanks you

azure-ad-connectmicrosoft-graph-users
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
0 Votes"
michev answered

You cannot, the whole idea of using directory synchronization is that changes to object and their attributes are managed centrally in your on-premises AD. Graph API, PowerShell or the admin center UI will not help you here, use the AD tools. Or if you want to manage objects via Graph, create them directly in Azure AD.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.