在 B2C 租户上创建用户:由 AzureAD 上的用户创建触发
Create users on B2C tenant : triggered by user creation on AzureAD
用例:在 Azure AD 中创建了一个用户。创建用户后,应立即为 B2C 租户中的用户创建另一个帐户(作为联合用户)。
问题:实现上述目标的最佳方法是什么?
当前添加或更改用户时无广告触发。类似的 issue 提供了一种解决方法。
The alternative way should be make sure to create an item in a
sharepoint list when you add/delete a user in Azure AD, and then you
create a flow to trigger when an item is created/deleted is sharepoint
list.
然后您可以使用 Microsoft Graph API.
为 Azure AD B2C 租户创建用户
POST https://graph.microsoft.com/v1.0/users
Content-type: application/json
{
"accountEnabled": true,
"displayName": "Adele Vance",
"mailNickname": "AdeleV",
"userPrincipalName": "AdeleV@contoso.onmicrosoft.com",
"passwordProfile" : {
"forceChangePasswordNextSignIn": true,
"password": "xWwvJ]6NMw+bWH-d"
}
}
用例:在 Azure AD 中创建了一个用户。创建用户后,应立即为 B2C 租户中的用户创建另一个帐户(作为联合用户)。
问题:实现上述目标的最佳方法是什么?
当前添加或更改用户时无广告触发。类似的 issue 提供了一种解决方法。
The alternative way should be make sure to create an item in a sharepoint list when you add/delete a user in Azure AD, and then you create a flow to trigger when an item is created/deleted is sharepoint list.
然后您可以使用 Microsoft Graph API.
为 Azure AD B2C 租户创建用户POST https://graph.microsoft.com/v1.0/users
Content-type: application/json
{
"accountEnabled": true,
"displayName": "Adele Vance",
"mailNickname": "AdeleV",
"userPrincipalName": "AdeleV@contoso.onmicrosoft.com",
"passwordProfile" : {
"forceChangePasswordNextSignIn": true,
"password": "xWwvJ]6NMw+bWH-d"
}
}