How to use different email with different domain to register Azure Active Directory using Graph API?

Arunkumar Duraisamy 0 Reputation points
2023-06-22T11:48:06.35+00:00

How to create a user in AAD using Graph API with an email like ******@gmail.com or
******@ymail.com.

Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Entra Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,621 Reputation points Microsoft Employee Moderator
    2023-06-26T08:53:57.0966667+00:00

    @Arunkumar Duraisamy Thank you for reaching out to us, As I understand you want to create a user using Graph API with email like ******@gmail.com or
    ******@ymail.com.

    Yes it is possible to create a user (post call in graph) using with mail attribute as per your defined value. Refer to this https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http example 1 has the steps on how to create a user, you just need to add mail attribute in the request body, below example

    User's image

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.