your managed identity is tied to azure app. this app must be given permission to access the graph api. see:
Accessing members list from Azure Group
Jain, Saurabh (SOP IT APD DA C03)
20
Reputation points
I am using ManagedIndentityCredential code in Javascript to fetch users from a Azure group but all I get is null values.
The same code when used with DefaultIdentityCredential works and correctly fetches the list of group members.
The managedidentity has the required permissions and is also the owner of the group.
What is it I am missing? Please help.