Feb 02 2018
03:05 AM
- last edited on
Feb 01 2023
09:46 AM
by
TechCommunityAP
Feb 02 2018
03:05 AM
- last edited on
Feb 01 2023
09:46 AM
by
TechCommunityAP
Hi,
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.
Any ideas?
Cheers,
Andy
Feb 02 2018 03:15 AM - edited Feb 02 2018 03:19 AM
You should connect to Azure AD and run Get-AzureADUserManager
https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadusermanager?view=azureadps-2.0
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
Hi P.R,
Thanks for the quick reply.
The Set-AzureADUserManager is only available the azure ad, right?
Cheers,
Andy
Feb 02 2018 03:31 AM
SolutionYes, 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.
Feb 02 2018 03:31 AM
SolutionYes, you should install Azure AD module for Powershell:
(please mark my reply as accepted response if it helped)