UserPrincipalName

userPrincipalName#

The Microsoft Active Directory attribute that you typically see expressed as an email address:
jwilleke@example.com

In the MMC Account Tab, this is labeled as the "User Logon Name".

The value can be used as an alternate login name within Microsoft Active Directory.

The userPrincipalName is defined in MSDN

Interesting Aspects#

The UserPrincipalName AttributeTypes is defined as: UserPrincipalName format is described in RFC 822 (obsoleted by RFC 2822)

The "<tree name>" is the domain name system (DNS) name of a domain, but is not required to be the name of the domain containing the user.

However, the "<tree name>" portion of the UserPrincipalName must be the name of a domain in the current forest or an alternate name listed in the upnSuffixes attribute of the Partitions container within the Configuration container. You can add or remove UserPrincipalName suffixes by modifying the upnSuffixes attribute (or by choosing Properties for the root node of the Active Directory Domains and Trusts and modifying the UserPrincipalName suffixes on the UserPrincipalName Suffixes tab).

Usually, the "<tree name>" is the name of the first domain in the first tree of the forest. In most cases, this domain name is the domain name registered as the enterprise domain on the Internet. The "<tree name>" is formatted by binding to the RootDSE on any domain in the forest, reading the RootDomainNamingContext attribute, and then transforming this from DC format (dc=fabrikam,dc=com) to the UserPrincipalName format (fabrikam.com) using the ADSI IADsNameTranslate interface.

In ADAM, this attribute is not required to be in the Internet standard RFC 822 format; it can be a simple name.

More Information#

There might be more information for this subject on one of the following: