Feb 02 2018
- last edited on
Feb 01 2023
I've added managers to a handful of employees with the command line for the purpose of testing
Set-User andy.kw -Manager Big.Boss
I can see the manager through the graphical interface of Office 365 but when using the get-user cmdlet, nothing is coming.
When looking at the doc, nothing is mentioned though.
Feb 02 2018 03:15 AM - edited Feb 02 2018 03:19 AM
You should connect to Azure AD and run Get-AzureADUserManager
And for adding manager to Office 365 users you can use Set-AzureADUserManager
Feb 02 2018 03:24 AM - edited Feb 02 2018 03:24 AM
Thanks for the quick reply.
The Set-AzureADUserManager is only available the azure ad, right?
Feb 02 2018 03:31 AMSolution
Yes, you should install Azure AD module for Powershell:
(please mark my reply as accepted response if it helped)
Feb 02 2018 10:55 AM
Get-User should also reflect on the changes though. It might be some delay replication, but that shouldn't take more than a couple of minutes.