"Invalid user name" when you try to create a user name that contains a special character in Office 365
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.
When you create a user name that contains a special character in Microsoft Office 365, you receive one of the following error messages:
Within the Office 365 portal
Invalid user name Only letters and numbers are allowed. No spaces.
Within Microsoft Azure Active Directory Module for Windows PowerShell
New-MsolUser : Invalid value for parameter. Parameter Name: UserPrincipalName. At line:1 char:13
Within Exchange Online Windows PowerShell
A Windows Live error occurred while provisioning for "firstname.lastname@example.org". The e-mail name contains invalid characters.
This behavior occurs because certain special characters aren't permitted in user names that you create in the Office 365. These special characters include but aren't limited to the following:
|Characters not allowed||
However, the following exceptions apply:
- An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name.
- When creating a group, the number sign (#) can be used as part of the group's name. However, the email address you create for a distribution group or shared mailbox cannot use the # sign.
When you create a new user in Office 365, make sure that you don't use any of the special characters that are listed in the "Cause" section.
Still need help? Go to Microsoft Community.