While creating an Microsoft 365 user, I get the following error "Invalid syntax Parameter Name."
Last updated on:In this article
Error Message
While creating an Microsoft 365 user, I get the following error "Invalid syntax Parameter Name."
Possible Cause
This behavior occurs because certain special characters aren't permitted in user names that you create in the Microsoft 365. These special characters include but aren't limited to the following:
| Property | UserPrincipalName requirements |
|---|---|
| Characters allowed |
|
| Characters not allowed |
|
| Length constraints |
|
Solution
This message is displayed when there is an error in the value being assigned to the parameter. There might be spaces or special characters in the values. Ensure that the parameter is not empty and does not contain any spaces or special characters.