[英]Microsoft Graph Api Create User With Microsoft Account,
No. It is not possible.不,这是不可能的。
A user must be the part of Azure AD with proper permissions to perform any operations (like creating users) in that Azure AD.用户必须是 Azure AD 的一部分,并具有在该 Azure AD 中执行任何操作(如创建用户)的适当权限。
What you have to do is invite the user to be a part of Azure AD and assign that user appropriate roles.您需要做的是邀请用户加入 Azure AD 并为该用户分配适当的角色。
If this was an Azure AD B2C user, your approach would be partially correct.如果这是 Azure AD B2C 用户,则您的方法部分正确。 But the issuer assigned id is not the email/username, it is a unique identifier generated by Microsoft.
但颁发者分配的 id 不是电子邮件/用户名,它是由 Microsoft 生成的唯一标识符。 And you can't really know it in advance as far as I know.
而且据我所知,您无法真正提前知道。 But that login page does not look like B2C, that looks like the regular Azure AD login page.
但是该登录页面看起来不像 B2C,它看起来像常规的 Azure AD 登录页面。
If this is a "regular" Azure AD user, then Gaurav Mantri's answer applies.如果这是“常规”Azure AD 用户,则适用 Gaurav Mantri 的回答。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.