user8122631
user8122631

Reputation: 11

How to get AppRole for azure active directory user using Microsoft Graph API

I am using Microsoft Graph API to access group and group members of azure active directory. Is there any way to get AppRole for user with Microsoft Graph API, as there is one example I found "How to check if an azure active directory user is already in an approle", but it uses Azure Active Directory Graph API

Is AppRole functionality available with Microssoft Graph or shall I switch to Microsoft.Azure.ActiveDirectory.GraphClient?

Upvotes: 1

Views: 838

Answers (1)

Nan Yu
Nan Yu

Reputation: 27538

I tried Get appRoleAssignment api in graph explorer with beta version:

GET /users/{id | userPrincipalName}/appRoleAssignments/{id}

but got the Unsupported segment type error , seems microsoft graph api is not exposing appRoleAssignments on users entity . You could query that using azure ad graph api instead .

Upvotes: 1

Related Questions