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?
View best response
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.