Customised automatically generated unique serial userid alias for every user

Haneef Ibn Ahmad



I would like to have a unique serial userid for every user that is created within the Office 365 tenant or Azure AD. I would like this to be customise-able and automated, and should be in the format u####@contoso.com


So, if I create; jon.doe@contoso.com, I would like that account to automatically have an alias of u0001@contoso.com. And when jane.doe@contoso.com is created, it should have u0002@contoso.com and so on...


Could this be done?



2 Replies
Hi Haneef,

You can do it with powershell using for example a csv that have the information to create the users with data that you need to accomplish your goal.



Thanks for that.


So, it can't be done at the Azure AD server end?


I would've to run this script every so-often?


Any pre-written powershell scripts/libraries that can accomplish this task?



Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies