Possible Cause:
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:
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.