I have a question about accessing the Microsoft Graph Api once a user is logged in through Azure Ad B2C. I am trying to migrate my app to login through b2clogin.com instead of login.microsoft.com and mostly it works except I can no longer call the Microsoft Graph Api to get the logged in user profile.
I have set up Postman as an Application in my B2C tenant and configured the api permissions with https://graph.microsoft.com/User.Read but when I try to get a token with the https://graph.microsoft.com/User.Read scope I get the following error
AADB2C90205: This application does not have sufficient permissions against this web resource to perform the operation
I am not sure what this error means but when I look at the signins for the user in the portal I see 3 signins.
The first has a status of Interrupted with an Failure Reason of
The application tried to perform a silent sign in and the user could not be silently signed in. The application needs to start an interactive flow giving users an option to sign in. Contact app owner.
The second one has a status of Interrupted with an Failure Reason of
Application X doesn't have permission to access application Y or the permission has been revoked. Or The user or administrator has not consented to use the application with ID X. Send an interactive authorization request for this user and resource. Or The user or administrator has not consented to use the application with ID X. Send an authorization request to your tenant admin to act on behalf of the App : Y for Resource : Z.
The third one has a status of Success
I have been looking through the documentation for days trying to figure this out.
I am missing some configuration I need to access the Microsoft Graph Api for a B2C user?