Questions tagged [upn]

The UPN (User Principal Name) is an Internet-style login name for the user based on the Internet standard RFC 822.

The UPN (User Principal Name) is an Internet-style login name for the user based on the Internet standard RFC 822. The UPN is shorter than the distinguished name and easier to remember. By convention, this should map to the user's email name. The point of the UPN is to consolidate the email and logon namespaces so that the user need only remember a single name.

The UPN is the preferred logon name for Windows 2000 users. Users should be using their UPNs to log on to the domain. At logon time, a UPN is validated first by searching the local domain, then the global catalog. Failure to find the UPN in the local domain or the GC results in rejection of the UPN.

The UPN can be assigned, but is not required, when the user account is created. When assigned, the UPN is unaffected by changes to other attributes of the user object, for example, if the user is renamed or moved, or changes to the domains in the tree, for example, if a parent domain was renamed or a domain was moved. Thus, a user can keep the same login name, although the directory may be radically restructured. Be aware that the UPN can be changed administratively at any time. The UPN is a string attribute that can contain any string value. However, the following scheme is recommended.

The user principal name has two parts: the UPN prefix (the user account name) and the UPN suffix (a DNS domain name). The parts are joined together by the at sign (@) symbol to make the complete UPN. For example, the user Someone who has an account in the Example domain would have a UPN of "someone@example.com".

The UPN must be unique among all security principal objects within the directory forest. By default (that is, for the built-in user accounts and user accounts created using the Active Directory Users and Computers snap-in), the UPN can consist of any name for the user (such as the sAMAccountName attribute of the user) and the domain tree name to which the user belongs in the following form: @.

The "" 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 "" portion of the UPN 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 UPN suffixes by modifying the upnSuffixes attribute (or by choosing Properties for the root node of the Active Directory Domains and Trusts and modifying the UPN suffixes on the UPN Suffixes tab). Usually, the "" 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 "" 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 UPN format (fabrikam.com) using the ADSI IADsNameTranslate interface.

When creating a new user object, you should check the local domain and the global catalog for the proposed name to ensure it does not already exist.

31 questions
0
votes
1 answer

Changing UPN to a Mail Id

By default all the User Principle Name and mail for O365 will be same but how to change User Principle Name and also how can we create an user with different User Principle Name and different mail.
0
votes
1 answer

Which ADuser's record does NPS check to validate an account? Can we change it?

For a school I implemented eduroam two years ago and from time to time we add new students in the AD. Five days ago I added 40 more new students but I changed the CN's (or what in New-ADUser is called "-Name") format: from "name.surname" to…
Alex
  • 65
  • 9
0
votes
2 answers

Ghost of deleted user profile is haunting me (shows up in search results and tags)

When I joined my current company, a new user was created for me that had a random capitalized letter in the email address. All attempts to fix the error were in vain, as there always remained some random place where the capitalization error showed…
Leav
  • 95
  • 6
0
votes
1 answer

Recommended NameIdFormat for using User Principle Name (UPN) as NameId in SAML

We have the following name id formats to choose from. unspecified emailAddress X509SubjectName WindowsDomainQualifiedName kerberos entity persistent transient If I need the UPN value of an user to be returned by my IDP (say Azure or ADFS, etc)…
Jebin Matthew
  • 35
  • 2
  • 9
0
votes
0 answers

We need to change the UPN in Azure. What do we need to do in / with Snowflake to be able to continue logging in please?

I have created a new Azure tenant, but Snowflake has been built align to the original tenant. I have changed the Azure UPN for a test user, and despite re-provisioning Snowflake, the test user cannot login. Is there a simple fix for this please?…
0
votes
1 answer

Impesonate user account with alternative UPN suffix

We have a domain boo.com and also somebody defined an alternative UPN suffix bc. There is an account created as foo @bc. I need to impersonate that account to connect to SQL Server. This is what I do: [DllImport("advapi32.dll", SetLastError =…
shlasasha
  • 165
  • 1
  • 14
0
votes
0 answers

How to read the tenant id or AAD domain name programmatically without forcing the user to authenticate

I need to look up the user principal name. For this purpose, I want to call UserPrincipal.FindByIdentity however I need to know the AAD tenant for the user. How do I determine the tenant? Thanks public string GetUpnForLoggedOnUser() { …
Martin K
  • 183
  • 9
0
votes
0 answers

SQL Management Studio login using UPC

We upgraded our legacy Active Directory, which used NETBIOS\username for login. The new UPN convention is username@domain.com but how do I change SQL Management Studio to use this new convention? (The User Name is greyed out, and since it maps to …
0
votes
1 answer

Login in ADFS with mail attribute

This is a simple question with no easy resolution (hoping be wrong!). We have configured an ADFS for authenticating O365 users and we'd like tu use it also for a custom website via SAML. We have everything configured and working for local users, but…
0
votes
0 answers

Resolve an explicit UPN to a implicit UNP (user pricipal name) in active directory

Accourding to this; https://msdn.microsoft.com/nl-nl/library/windows/desktop/aa380525%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 There are two types of UPN's. (User pricipal name) implicit UPN explicit UPN (defined by the admin) Is there a way…
Dennis
  • 1,528
  • 2
  • 16
  • 31
0
votes
1 answer

Azure AD Linked Accounts and Alternate Login Mapping

My customer is in the process of modifying all of their UPNs to match their primary SMTP. They have a few Azure AD Directories and around 100 of the accounts they are changing the UPN are external users in the other Azure AD directories (for admin…
SeanS
  • 1
  • 1
0
votes
1 answer

Folder Redirection - Create folder as UPN instead of sAMAccountName - Windows, GPO

My IT-admin set up "folder redirection" within our network... So our folders are synced from/to a central-share. Because of some custom programs we did... We need the folder for the user to be created using the user's UPN name, instead of their…
user542103
  • 255
  • 3
  • 18
0
votes
1 answer

How to get UPN (User Principal Name) frof the current logged in user?

In the context of my earlier question, I am trying to get UPN of the current logged in Windows Active directoy user in C++. I know how to get the SID of logged in user but unable to get the UPN of the logged in user.
aJ.
  • 34,624
  • 22
  • 86
  • 128
0
votes
3 answers

How to change multiple users UPN suffix?

I'm preparing for a move to office365 and since we have the mydomain.local domain I need to add an alternative UPN (same as my SMTP namespace) so mydomain.com. I added the alternate UPN to my domain and now I want to change multiple users UPN at…
Wacke
  • 21
  • 1
  • 1
  • 3
-1
votes
2 answers

Get User Principal Name (UPN) In InnoSetup Installer?

Within the InitializeSetup() function among other actions, when the installer is ran, I would like the installer to retrieve the current UPN. The UserName variable is not sufficient enough. I have also tried methods discussed here utilizing the…