How to Update the EmployeeOrgData Value on Entra ID Users

How to Update the EmployeeOrgData Value on Entra ID Users

In this article, I’ll explain how to update the EmployeeOrgData for Entra ID users, which includes the Division and CostCenter properties. These properties are typically synchronized from an on-premises Active Directory environment via Entra Connect, but you can also set them using the PowerShell Graph module. Below, I’ll provide an example of how to do this.

Updating EmployeeOrgData

The PowerShell code below first connects to Graph using the User.ReadWrite scope, which grants permission to modify user records. It then updates a user’s EmployeeOrgData collection, setting the Division and CostCenter properties to the specified values.

Afterward, it retrieves the updated properties of the same user to confirm the changes were successful, before disconnecting the session.