The samAccountName is the User Logon Name in Pre-Windows 2000 (this does not mean samAccountName is not being used as Logon Name in modern windows systems). The userPrincipalName is a new way of User Logon Name from Windows 2000 and later versions. user Name part can be different for the same user like DomainName\testUser and [email protected].
- The samAccountName attribute is the user logon name used to support clients and servers from a previous version of Windows ( Pre-Windows 2000).
- The user logon name format is : DomainName\testUser.
- The samAccountName must be unique among all security principal objects within the domain.
- The samAccountName should be less than 20 characters.
- Query for the new name against the domain to verify that the samAccountName is unique in the domain.