Normalized User Principal Name | As the world grows smaller and smaller, we need to do identity management smarter and faster. This post will help you to give Štěpán Horáčk a proper UPN / email address using PowerShell.
The script
The powershell module can be downloaded from our public github repository.
https://github.com/Altitude365/Altitude-Public/tree/master/Tools/Username normalizer

Using the module
First we import the module by running the import command.
Import-Module .\A365UsernameNormalizer.psm1
If you plan to use this module in Azure just put the files into a folder called “A365UsernameNormalizer” and compress it to a ZIP file. The module is then ready to be imported into Azure Automation.
After the module is imported we can use the custom “new-a365NormalizedUsername” function.
new-a365NormalizedUsername -FistName “Štěpán” -LastName “Horáčk” -Domain “@altitude365.com”
new-a365NormalizedUsername -FistName “Ola Göran” -LastName “Ävådalöson” -Domain “altitude365.com”
This will give us the following results:
stepan.horack@altitude365.com
ola-goran.avadaloson@altitude365.com