Creating unique mail ID (using graph api) if user with same name already exist

Ayan Usmani 151 Reputation points
2022-07-06T11:04:21.757+00:00

Let suppose I have user Rohan Joshi present in my AD and there is a new user with same name who joins us.

I wanted their details to be Rohan.Joshi@xyz .com & Rohan.Joshi1@xyz .com in my AD

How can we acheive it using the Graph '/user' API ?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Ayan Usmani 151 Reputation points
    2022-07-06T14:58:11.75+00:00

    Thanks Shivam for the details !!!

    I am aware about this API but my query is how will we know before hand that user with name Rohan Joshi is already present and that we have to use some other variation of the same name as you showed.

    Is there any api to check if the user with same name exist and we get some suggested name to be used.

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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