Get a list of groups that Azure AD user belongs to in claims

前端 未结 4 1759
野趣味
野趣味 2020-12-06 07:27

I am authenticating users of my web api against Azure Active Directory. Now I want to get a list of groups that this user belongs.

I changed application manifest to

4条回答
  •  庸人自扰
    2020-12-06 07:57

    If a user has more than 150 groups, only the link to Graph API in a calim like "graph:link" is returned and not the groups. It is done for performance reasons. You then need to call Graph API (MS Graph API - newest, or AD Graph API - older) to iterated through all groups.

提交回复
热议问题