The name of a system user in email address format is known as a User Principal Name (UPN) in Windows Active Directory. The user name (login name), separator (@ symbol), and domain name (UPN suffix) make up a UPN (for instance: henry.williams@domain.com).
Note:
An email address and a UPN are not the same thing. There are situations when a UPN and a user's email address can match, however this is not always the case.
Steps to verify or edit the UPN in Exchange server
- Launch 'Active Directory Users and Computers' on your domain controller (DC) system. Right-click on any user and select 'Properties'.
- Choose the 'Account' tab
- You can verify or modify the UPN on your user in the 'User logon name' section.
You can also set UPN address by running the below Windows PowerShell commands
import-module activedirectoryGet-ADUser -Filter * -SearchBase 'ou=,dc=,dc=' -Properties userPrincipalName | foreach { Set-ADUser $_ -UserPrincipalName ("{0}@{1}" -f $_.name,"")}
Steps to verify or edit the UPN in Office 365
- Log in to Microsoft 365 admin center
- Navigate to 'Users' > 'Active users'
You may encounter an issue in Office 365 when the users' UPN suffixes continue to be formatted in the domain-x.onmicrosoft.com format rather than your domain's suffixes (e.g. my-org.com). Run the following Azure Active Directory Module for Windows PowerShell to fix the issue and change the UPN addresses of Office 365 users.
- Run the below command to import Azure Active Directory Module for PowerShell:
import-module MSOnline
- Run the below command to connect to Office 365
$msolcred = get-credential
connect-msolservice -credential $msolcred
- Run the following cmdlet to modify the UPN
Set-MsolUserPrincipalName -UserPrincipalName -NewUserPrincipalName