An employee has five names, and they have to fit together
Whoever creates an account chooses more than one name. In a Microsoft environment every employee has a sign-in name for Entra ID, a sign-in name for older Windows components, a primary email address, possibly aliases and a display name. Each of those names has its own rules.
| Name | Where | Example | Rules |
|---|---|---|---|
UPN (userPrincipalName) | Active Directory and Entra ID | jan.devries@company.nl | Unique in the forest. At most 113 characters: 64 before and 48 after the @. Only letters, digits and ' . - _ ! # ^ ~, no full stop directly before the @. The domain must be verified in Entra ID. |
| Primary email address | proxyAddresses with SMTP: in capitals, and mail | jan.devries@company.nl | The address the employee sends from. No accented characters. |
| Aliases | proxyAddresses with smtp: in lower case | j.devries@company.nl | Extra addresses that arrive in the same mailbox. Up to 400 per user. |
sAMAccountName | Active Directory | jdevries | At most 20 characters. Not allowed: " / \ [ ] : ; | = , + * ? < >. According to Microsoft you choose it when the account is created and it does not change afterwards. |
Display name (displayName) | Active Directory and Entra ID | Jan de Vries | What colleagues see in Outlook and Teams. Required in Entra ID, at most 256 characters. |
Then there is the mailNickname, the mail alias without a domain, with at most 64 characters. It decides the UPN when something goes wrong with the domain, as you can read below.
