Challenges in Retrieving MFA Data for Azure B2C Users Across User Flows and Microsoft Graph API

Dweep Shah 15 Reputation points
2024-11-09T10:27:22.0766667+00:00

Hello,

I am utilizing Azure B2C for an application that enables users to set up multi-factor authentication (MFA) through two methods: signing up via user flows and using the Microsoft Graph API. When I create MFA using the Graph API, I can successfully retrieve the data using the API endpoint. However, when users sign up through the user flow, I am unable to retrieve the data where I require the mobile number using the same API.

Below are the endpoints I am using:

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,168 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,291 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,655 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 42,531 Reputation points
    2024-11-11T10:40:48.9466667+00:00

    Hi @Dweep Shah

    Note that access tokens requested using user flows/custom policies can only be used to call Web APIs that you expose in your tenant, not the Graph API.

    User's image

    Hope this helps.

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

    0 comments No comments

Your answer

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