Hello @Damodara, K,
Thank you for posting your query on Microsoft Q&A.
Based on your description, I understand that you are using a custom activity in Azure Data Factory (ADF) to update users in Entra ID but are encountering the error: "Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration."
This error occurs when attempting to update properties of users that have been synced from an on-premises Active Directory to Entra ID via Microsoft Entra Connect. Direct modifications to these users in Entra ID (e.g., via scripts or the Azure portal) are not allowed. Instead, any changes must be made in the on-premises Active Directory and then synchronized to Entra ID using Entra ID Connect.
Here are the key scenarios where this error can occur:
- These cannot be updated if the user is enabled for sync or is managed by Exchange Online
- These cannot be updated if the user existed when sync was disabled for tenant
Could you please provide more details on the specific user properties you are trying to update? Also, are these users synced from on-premises Active Directory, or are they cloud-only users?
I hope this information helps. Please feel free to reach out if you have any further questions.
If you found this answer helpful, kindly click "Accept Answer" and upvote it. If you have additional questions, please click "Comment" to continue the discussion.