Unable to get display names (sAMAccountName) of groups from Graph API call
C, Richard
1
Reputation point
I have a working Azure app that gives me the group names when I call
https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group
However, I have tried to recreate the app several times, and checked all settings in App Registrations and Enterprise Applications to match the original app - but can never get the group names in the new apps (created in the last 24 hours).
API Permissions:
- Group.Read.All
- GroupMember.Read.All
- User.Read
App is created using these steps
- App registrations, add, Single tenant
- Quickstart, Mobile and desktop applications, Desktop, Make this change for me
- Token configuration, Add groups claim, Security groups, set all to sAMAccountName
- API Permissions, add Group.Read.All and GroupMember.Read.All
- Permission granted using “Grant admin consent for Default Directory”
Any clues would be much appreciated.
FYI fragment of group result that I get
"@odata.id": "https://graph.microsoft.com/v2/5ed71832-327b-4b98-b68a-6c54ff1717c0/directoryObjects/2f95e1d3-c7cf-4796-92a2-df844feb52d0/Microsoft.DirectoryServices.Group",
"id": "12345678-c7cf-4796-92a2-df844feb5eee",
"deletedDateTime": null,
"classification": null,
"createdDateTime": null,
"creationOptions": [],
"description": null,
"displayName": null, <<<<<<<<<< why is this null???