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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,775 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,791 Reputation points Microsoft Employee
    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