I am new to Microsoft Graph, I am lost on getting the roles or memberships of the user
I have found
https://graph.microsoft.com/v1.0/me/memberOf?$select=*
But this pretty much only returns and ID as a GUID, but no usable strings or any informatiuon that I can parse
Is there a way to get groups as I would do:
PrincipalContext principalContext =
new PrincipalContext(ContextType.Domain, "mycompany.com");
var roles = UserPrincipal.FindByIdentity(principalContext,
IdentityType.SamAccountName, user.Name).GetGroups();
if (roles.Any(v => v.Name.Equals("expected-role", StringComparison.OrdinalIgnoreCase)))
// we are fine
The question, how do I do the same with graph?