Customised automatically generated unique serial userid alias for every user

Iron Contributor

Hi,

 

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?

 

Thanks,

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.

Hello Nuno,

 

Thanks for that. Could you send me any pre-written PowerShell scripts that you're aware of?

 

Is there a way of configuring Azure AD to do it automatically?

 

Otherwise, the IT support would've to run this script every single time they create an user. We would like to automate these processes as much as possible. Even if there're 3rd part software to accomplish this.

 

Kind regards,