I trying create a new user via graph api like below.
Actually i want to login with my microsoft account. But i getting this error.Is there a solution this without sending an invite to the user?
CodePudding user response:
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.
What you have to do is invite the user to be a part of Azure AD and assign that user appropriate roles.
CodePudding user response:
If this was an Azure AD B2C user, your approach would be partially correct. But the issuer assigned id is not the email/username, it is a unique identifier generated by 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.
If this is a "regular" Azure AD user, then Gaurav Mantri's answer applies.