Sign up for Office 365
Learn more about Office 365
Written by: Chris deMaagd
What characters can I use when creating a password or user name in Office 365? What characters should I avoid?
The following table lists all of the characters that you can and cannot use in a password or user name in Office 365.
* You can put a period anywhere in your user name except at the very beginning or at the very end. ** You can put an underscore anywhere in your user name, including at the very beginning or at the very end.
The reason you can’t use some characters in your user name has to do with the programming language that comprises Office 365, called C# (a/k/a "C sharp"). C#, like any other programming language, utilizes not just words or phrases, such as go to or find all; it also relies on many characters that compose the commands that tell Office 365 what to do.
For example, in C#, the dollar sign character ($) doesn't imply money; rather, it's a command that instructs Office 365 to treat the word or set of characters that precedes the dollar sign character as yet another command. So, in C#, the phrase Valx$ would mean, in computer-ese, "when you see the letters V-a-l-x in that order, you are to use it to…" The reason, then, that you can't use $ in your user name is because you don't want Office 365 to inadvertently treat any part of your password as an actionable "phrase" of C#. It's the same with the rest of the characters that you can’t use in a password or user name, each of which has a specific function in C#.
Other things that you can't use in a password or user name include the following:
In a password, you can't use your user name (that is, the entire part of your Office 365 ID that precedes the @ symbol).
For more information about passwords and user names, see the following Help articles:
Great article, but one small contradiction. You list $ is available for use as a password character but then in the text you say it can't. Might need clearing up, but a great reference nonetheless
Justin,
Thanks for your eagle eye! We've corrected the error.
Chris, thanks for the insight into C# and the use of special characters. I'm not intimately familiar with the C# language, and I'm afraid I already know the answer, but is there any workaround for adding a connected account to Outlook which includes a special character? In this instance, the email address I use on one exchange server includes the apostrophe in my last name, Ryan.O'Connor@email.com. I had hoped to connect to that server using Outlook in Office 365, but I'm unable to. As I stated earlier, I'm hoping there may be some workaround available to allow me access to this account online.