How to call Graph API use tokens generated via B2C

Tinh Nguyen 21 Reputation points
2021-08-27T04:21:28.387+00:00

Hello,

I using Azure AD B2C to authenticate.
Can I get bearer tokens generated via B2C to authenticate with the Graph API?
if not help me with a solution, please.

Thanks for your supports!

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Saurabh Sharma 23,866 Reputation points Microsoft Employee Moderator
    2021-09-01T22:32:21.827+00:00

    Hi @Tinh Nguyen ,
    Unfortunately, it is not possible to call the graph API using Azure AD B2C token as graph api does not accept B2C tokens. Please refer to this Github issue.
    If you want use Graph to manage resources in Azure AD B2C then you can go through the documentation over here - Manage Azure AD B2C with Microsoft Graph
    Supported Graph API operations are -

    • Users
    • Identity Providers
    • User Flows
    • Custom policies and custom keys
      Please refer to the documentation for more information.

    Thanks
    Saurabh

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


0 additional answers

Sort by: Most helpful

Your answer

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