Does the userPrincipalName (UPN) attribute always exist in Active Directory

active-directory

Does the attribute userPrincipalName (UPN) always exist for users in Active Directory?
Can you specify the Active Directory versions where it is not created during creation of a user?

Best Answer

The User-Principal-Name attribute is only used within the User class. Note that the attribute is not marked mandatory.

The following Powershell example will create an AD user without a UPN:

Import-Module ActiveDirectory
New-ADUser -Name abUser

Observe that there is no UPN defined on the user object:

enter image description here