sAMAccountName & userPrincipalName
Yes, ThOse caPitals are coRRect
Last updated
Yes, ThOse caPitals are coRRect
Last updated
sAMAccountName
which was an attribute used as the logon name for earlier versions of Windows; NT4 and all that. When Microsoft realized the internet was a thing, they introduced a logon name that was RFC 822 compliant the userPrincipalName
(UPN). It wasn't broadly adopted (except for PKI) until Office 365 required its use as the primary logon name for their cloud services. Since then the logon name has coalesced around UPN as the standard and the most important logon identity attribute in their directory.
A common deployment for Tableau Server integrates the server with Active Directory as the external identity store. As Tableau Server has been around for a while it still uses sAMAccountName
when you sync users into the repository from Active Directory; and this then becomes your Tableau Server username.
At present it is not possible to change this to UPN for Tableau Server using Active Directory as an External Identity Store.
There are some exceptions to this AD user sync logic described in our docs when the normal sync ofsAMAccountName
doesn't work. But this is not how to import UPN as a choice.
Exception 1: If the UPN prefix of the user specified is greater than 20 characters, and the search string matches the full UPN, and is entered with the Windows login format (domain\UPN).
This imported the user with the UPN prefix as the username and not the sAMAcountname:
Exception 2: If the user name you specify includes an @
symbol in the UPN prefix and the search string you enter is either in the Windows domain login format (example.lan\jsmith@domain
) or is the full UPN.
If user names were inadvertently imported using UPN names, you can delete the accounts in Tableau Server and then reimport those accounts using the
sAMAccountName
value for the user name
In short, no these exceptions do not occur if you sync an Active Directory user group. Tableau will sync all users from the group using the sAMAccountName
. Importing with Groups has a number of advantages anyway with Grant Licence on Login for example.
1) Use Active Directory Lightweight Directory Services to present AD as an LDAP service to Tableau
2) Local Identity Store (requires provisioning of users at scale)
3) Use LDAP
Migration considerations at a very high level:
Map the user to the new username
Migrate the content potentially using Site Export and Import
Conveniently, if you already synchronize your directory to Azure AD then there is the onpremisessAMAccountName
attribute. This is available to be passed as a claim in your SAML authentication flow to match your on-premises Active Directory provisioned Tableau user. This is described in more detail here.
Active Directory Domain Services (AD DS) domains have two types of names: Domain Name System (DNS) names and NetBIOS names. In general, both names are visible to end users. The DNS names of Active Directory domains include two parts, a prefix and a suffix. When creating domain names, first determine the DNS prefix. This is the first label in the DNS name of the domain. The suffix is determined when you select the name of the forest root domain.
You can create additional UPN suffixes, often to match the email addresses in use in your org so your users just have to remember 1 identity.
UPN suffixes are then assigned to your users within your Active Directory forest.
As you can see below you can have a different UPN suffix but still be in the same domain.
This is also confirmed by running tabcmd listdomains
where I still only have the THOMPSON365 domain visible to the server.
However, if you logon to Tableau with a different UPN suffix than your 'Domain Name' then you will receive this error.
Checking out the vizportal logs:
You need to ensure that all of your suffixes are added to the Tableau domain allow list similar to if you were working with a multi-domain deployment.
I can add users as part of a group with a different UPN suffix and do not receive the DEBUG event that it has recognised the user with a different UPN.