MS Graph: how to modify authentication contact info for a user

Carol Lai 521 Reputation points
2021-05-07T07:10:33.73+00:00

I followed this example to create a user in AAD B2C.
https://learn.microsoft.com/en-us/azure/active-directory-b2c/microsoft-graph-operations#code-sample-how-to-programmatically-manage-user-accounts

We are using MFA so we need to add authentication contact info.
94712-image.png

How can I add that information when creating a user?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-05-13T11:53:42.873+00:00

    Hello @Carol Lai MS Graph provides authentication method APIs to manage a user's authentication methods. Using these APIs you can add a phone number for a user, who can then use that number for SMS and voice call authentication if they're enabled to use it by policy. Please see documentation to add new phone numbers for the user and authentication methods API overview. Note that phoneAuthenticationMethod is currently in beta.

    Please let me know whether this helps and if you have further questions,

    Diana.