Sep 18 2020 03:09 AM
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?
Sep 18 2020 09:42 AM
SolutionYou 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.
Sep 18 2020 09:42 AM
SolutionYou 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.