Munazza Osama
Munazza Osama

Reputation: 35

how to change MFA Phone Number within updateProfile Page

i can successfully Change MFA Phone Number using Edit MFA Number sample Edit MFA Phone Number

and separately I can call "SelfAsserted-ProfileUpdate" in user journey to update the profile (givenname and surname).

i want to have one single profile edit page with pre filled givenname, surname and MFA Phone number, and user can edit them and update them. so question is, is it possible to have MFA Phone number editable in the same page where givenname and surname are edited.

Upvotes: 0

Views: 1125

Answers (1)

Rutha
Rutha

Reputation: 805

Yes it is possible and here are the steps:

For updating the profile attributes first, you need to add extension_mfaByPhoneOrEmail as an output claim in your profile (edit technical profile). The starter uses the technical profile called SelfAsserted-ProfileUpdate. (link)

Then save the attribute to the dictionary by adding extension_mfaByPhoneOrEmail as persisted claim to technical profile AADUserWriteProfileUsingObjectid. (link)

Read more here about the Azure Active Directory technical profile in Azure Active Directory B2C custom policy.

Upvotes: 1

Related Questions