ADB2C | Graph API

Abhay Chandramouli 1,061 Reputation points
2023-01-16T14:24:13.5566667+00:00

Hello,

I want to call Graph API for a Azure AD B2C user, to get a token via ROPC flow

What is the process, which permissions are required please let me know

Thanks,

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

2 answers

Sort by: Most helpful
  1. Mehtab Siddique (MINDTREE LIMITED) 971 Reputation points
    2023-01-16T14:38:57.39+00:00

    To Manage Azure AD B2C with Microsoft Graph please follow the below steps:

    User's image

    For more information: [https://learn.microsoft.com/en-us/azure/active-directory-b2c/microsoft-graph-operations#prerequisites


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. CarlZhao-MSFT 46,406 Reputation points
    2023-01-17T02:47:55.22+00:00

    Hi @Abhay Chandramouli

    Yes, you can use Azure AD-specific ROPC flow to get an access token and then call the graph API to perform CRUD operations for users in your Azure AD B2C tenant.

    First, you need to grant the User.ReadWrite.All delegated permission to your application and grant administrator consent (you need the Directory.AccessAsUser.All permission if you want to change the password of the logged-on user).

    33

    Then use ROPC flow in the postman to get an access token.

    35

    Call the graph API to list the user sets of B2C tenants:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


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.