Forum Discussion
sunnykalola
Sep 18, 2020Brass Contributor
Is there any API to get organizational role of user of office 365 admin center?
Is there any API using which I can get the office 365 role of the user? If yes can someone help me with it?
I want to get the user roles shown in the above screenshot using an API call? Can someone help me with it?
You can get this via the good old Get-MsolUserRole cmdlet. There's no direct replacement in the Azure AD PowerShell module or the Graph API, afaik. If using those, you'll have to enumerate membership of all directoryRoles.
You can get this via the good old Get-MsolUserRole cmdlet. There's no direct replacement in the Azure AD PowerShell module or the Graph API, afaik. If using those, you'll have to enumerate membership of all directoryRoles.