I'm looking for an exact set of allowed characters for the mailNickname when creating a new Group/Team.
I found some documentation at https://docs.microsoft.com/en-us/powershell/module/exchange/set-unifiedgroup?view=exchange-ps#parameters which describes Exchange's Alias but, when creating a Team with displayName Tést, for example, the é is removed from the mailNickname - so this doesn't seem to map 100%.
So, my question is: is there a concrete list of characters, or a Regex we can use, to validate a mailNickname locally?
Currently I use this one, but it doesn't seem to be completely correct:
^(?!\.)(?!.*\.$)(?!.*?\.\.)[a-zA-Z0-9\u00A1-\u00FF!#$%&'*+\-/=?^_`{}|~.]+$
