Azure AD B2C - 我们可以使用电子邮件 ID 而不是 UPN 登录 - 仅限本地帐户自定义策略吗?

Azure AD B2C - Can we sign-in using email-id instead of UPN - local accounts only custom policy?

我正在使用 Azure AD B2C 本地帐户登录仅自定义策略(即不注册)。我需要使用电子邮件作为登录 ID 而不是 UPN。我找不到任何关于更改此要求的自定义策略的 Microsoft 指南。

我能看到的唯一链接 https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-authentication-use-email-signin (Microsoft Preview) and https://github.com/azure-ad-b2c/samples/tree/master/policies/username-or-email 但它对我需要更改本地帐户的内容没有太大帮助,只有自定义策略才能使用备用登录电子邮件 ID 登录。有人可以解释一下吗?

创建用户时,将公司电子邮件添加到身份集合中。

https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http#example-2-create-a-user-with-social-and-local-account-identities

  "identities": [
    {
      "signInType": "emailAddress",
      "issuer": "yourB2C.onmicrosoft.com",
      "issuerAssignedId": "username@<company domain name>.com"
    }
  ]