im working with azure B2C and social accounts.
I have setup an app registration and configure a custom flow to allow sign-in with social accounts on my app. Thats pretty fine and works well. It works allso with local accounts.
When i call https://graph.microsoft.com/v1.0/users/{userID}
with any local account the graph api returns some profile informations. But if i try this with an socail account it fails with the error message Failed to acquire token
why it fails only on social accounts?
Or it´s maybe impossible to use the azure graph api with social accounts?
Thanks
2
Answers
It´s not possible to access ms graph with an "social user". For accessing the graph, any service / service account is required.
Behind the scenes -> "social users" cant be assing requiered graph premissions to access them.
The note from documentation suggests that:
For more information:https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-beta&tabs=http#http-request
For Create a user with social and local account identities you can refer to this example: https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http#example-2-create-a-user-with-social-and-local-account-identities
Hope this helps