Return emails on custom policies

前端 未结 2 1650
甜味超标
甜味超标 2021-01-14 11:53

I\'m using custom policies and I saw that the field \"emails\" that exists in built-in policies but doesn\'t exist in custom policies. There is a claim named otherMail

2条回答
  •  一个人的身影
    2021-01-14 12:07

    For Chris Padgett's answer, you can add other emails (Alternate email) into the claim.

    If you just want to add email claim from the SignIn name into the token, you can just take following steps:

    1. Open your SignUporSignIn.xml file

    2. Replace with

    3. Save this SignUporSignIn.xml file and upload it to Azure AD B2C to overwrite the policy.

    4. Run the SignUporSignIn policy to test it. Here is my test result, you can see the email claim in the token:

提交回复
热议问题