Set up Manager for Office 365 Users

Every organization should have a hierarchy set up for their employees to run day-to-day to work smoothly. Office 365 introducing many advanced features (ex: Office 365 Groups, Flow, Planner, Teams, and etc.) to reduce the hurdles in collaboration and communication between employees and their manager. So, setting up manager for users is important to use advanced features like Flow and Workflow.

In this post, we are going to explain how to update manager field for Azure AD users by following three different ways.

Set Manager via Exchange Online Admin center

You can follow the below steps to set a manager in the required mailbox user through Exchange Online Admin center.

  • Go to Office 365 Admin center.
  • In the left navigation, expand Admin centers, and then select Exchange.
  • In the Exchange Administration Center (EAC), navigate to recipients > mailboxes.
  • Select the required user to update manager field and then click on Edit icon.
  • In Edit Uer Mailbox popup, go to organization tab and you can set manager field as shown in the below image.
Add manager from Exchange Admin Center
 

Set Manager via Azure AD portal

Follow the below steps to configure manager from Azure AD Portal.

  • Go to Azure AD Portal.
  • In the left navigation, click Azure Active Directory and click Users.
  • Select (click on user name hyperlink) the required user, click on Edit under Job info section and then add or remove manager field as shown in the below image.
Add or Remove manager from office 365 user in Azure AD Portal
 

Set or Remove Manager using PowerShell

Powershell is always a good tool for Administrators to manage Azure Ad objects. We can use the Azure AD powershell cmdlet Set-AzureADUserManager to set manager field and Remove-AzureADUserManager to remove manager.

Before proceed, install Azure Active Directory PowerShell for Graph and run the below command to connect Azure AD PowerShell module:

Connect-AzureAD

You can run the following command to add manager after replacing required user’s and manager’s UPN or ObjectId.

$User  = "[email protected]"
$Manager  = "[email protected]"
$ManagerObj = Get-AzureADUser -ObjectId $Manager
Set-AzureADUserManager -ObjectId $User -RefObjectId $ManagerObj.ObjectId

You can run the following command to remove or clear manager field.

Remove-AzureADUserManager -ObjectId "[email protected]"

You can check and get users’ existing manager value by running following command.

Get-AzureADUserManager -ObjectId "[email protected]"

Note: Setting up manager field in one place does not immediately reflect in other places or in Delve and you have to wait few mins to hours for a full crawl of Active Directory by the SharePoint User Profiles.

Advertisement

1 thought on “Set up Manager for Office 365 Users”

Leave a Comment