question

CarolLai-5934 avatar image
0 Votes"
CarolLai-5934 asked GloriaGallego-5121 commented

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

I followed this example to create a user in AAD B2C.
https://docs.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?

image.png (225.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered GloriaGallego-5121 commented

Hello @CarolLai-5934 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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DianaWanjuhi-1579
Are you saying that I'm unable to add the phone number when I create a user?

Based on the example code, I can create a user from the users.json file.
96309-image.png

Is it possible to add a name and a value for the phone information in this json file?

0 Votes 0 ·
image.png (90.8 KiB)

Hi, Did you found a way to create the user with the Phone number on "authentication contact info"?

0 Votes 0 ·