Updating user attributes in Microsoft Entra ID—such as job titles, departments, or contact details—is a common task for IT teams. While the Update-MgUser cmdlet from Microsoft Graph PowerShell can perform these updates, it requires scripting knowledge, attention to syntax, and administrative permissions.
ADManager Plus, on the other hand, provides a hassle-free, GUI-based approach for modifying user attributes in bulk or individually. It supports bulk-management options, automation capabilities, and more to make the update process faster, safer, and more efficient.
Before using the Update-MgUser cmdlet:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "User.ReadWrite.All"
This cmdlet modifies attributes of a user in Microsoft Entra ID:
Update-MgUser -UserId "<userPrincipalName>" -Department "Marketing"
Example 1: Update a user’s department and title
Update-MgUser -UserId "John@zkyy.com" -Department "Sales" -JobTitle "Sales Manager"
Example 2: Change a user’s office location
Update-MgUser -UserId "Vance@zkyy.com" -OfficeLocation "ZKY Building"
Example 3: Disable a user account
Update-MgUser -UserId "Kevin@zkyy.com" -AccountEnabled $false
| Parameters | Description |
|---|---|
| -UserId | This parameter is used to specify the unique identifier of the user to update. |
| -Department | This parameter updates the department of the user. |
| -JobTitle | This parameter modifies the job title. |
| -MobilePhone | This parameter updates the user’s mobile number. |
| -AccountEnabled | This parameter enables or disables the user account. |