In Azure B2C with the GraphAPI I can change the email address of an existing user with a http PATCH command: https://azure.microsoft.com/nl-nl/documentation/articles/active-directory-b2c-devquickstarts-graph-dotnet/
"SignInNames": [
{
"type": "emailAddress",
"value": "demo@domain.com"
}
This works, and I can login with the new email address.
But this leaves the UPN
at the old value, do I need to set the UPN
as well, or is there no harm in having the UPN
stay at the old email address?
答案 0 :(得分:1)
是的,无需更新UPN字段。
答案 1 :(得分:1)
使用 v1.0 版本的 Microsoft Graph API,更改登录电子邮件地址的 PATCH 请求正文应如下所示:
{"identities":[{
"signInType":"emailAddress",
"issuer":"yourTenantName.onmicrosoft.com",
"issuerAssignedId":"newemail@email.com"
}]}
答案 2 :(得分:0)
这就是为什么(我认为)电子邮件地址永远不应为默认地址。而是选择用户名帐户选项,电子邮件将变得更容易处理。