Group DisplayName using Graph API method me/memberOf

Toni Branco 20 Reputation points
2023-05-08T21:51:12.2+00:00

Hi,

I am trying to get the list of a Azure AD Groups name a user is a member of.

I am using the https://graph.microsoft.com/v1.0/me/memberOf? call with Oauth2 authentication where I have granted the delegated app with the following rights: Screenshot 2023-05-08 at 23.46.46

However, the response of the API call returns the list of groups with their ID, but the property displayName is NULL:

Screenshot 2023-05-08 at 23.48.24

Is there any permission missing ?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,685 questions
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,876 Reputation points
    2023-05-09T09:01:48.4133333+00:00

    Hi Toni Branco , I tested locally with the same permissions as you and it ran successfully.

    And per my test, as long as you have either Group.Read.All and GroupMember.Read.All, you can get the value.

    So, please try to decode the token in jwt.ms to ensure that it contains all permissions.

    Hope this helps. Best Wishes.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.