gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 04:56:22 26 4
gpt4 key购买 nike

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

我能看到的唯一链接https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-authentication-use-email-signin (微软预览版)和 https://github.com/azure-ad-b2c/samples/tree/master/policies/username-or-email但就我需要在本地帐户上更改的内容(仅自定义策略以使用替代登录电子邮件 ID 登录)而言,它没有多大帮助。有人可以解释一下吗?

最佳答案

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

https://learn.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"
}
]

关于Azure AD B2C - 我们可以使用电子邮件 ID 而不是 UPN 登录 - 仅本地帐户自定义策略吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68675686/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com