Howdy Smart Kids,
Do y'all remember how to change the default upn prefix?
The default is sAMAccountName@<domain.tld> if you do not specify it when creating a user (you can, of course, specify something different at entry).
Say I want it set to givenName.sn@<domain.tld> if/when you do not specify it when creating a user.
I cannot remember if I always did this programmatically or if I finally found a way to set it in AD. A new organization, same requests. .. .lost my notes.
Thank you for your time,M
Default UPN prefix.
- 306 Views
- Last Post 22 April 2016
Howdy Smart Kids,
I would think that powershell's set-aduser would do this for you.
Hey Kurt, Thank you very much for taking the time to respond. I understand how to do it.
I cannot remember (and I will admit I may be dreaming this up) if I always did this programmatically or if I finally found a way to set it in AD (a configuration item or attribute mapping).
I'm thinking I did do it programmatically (or some clever addin/snap-in).
> Date: Thu, 21 Apr 2016 13:53:33 -0700
> Subject: Re: [ActiveDir] Default UPN prefix.
It's not a task I've ever done, but in all of my banging around in the
various RSAT tools (ADUC, mostly) I've never seen a way to do it,
except in adsiedit, and that would only be good for one-offs.
So, either programmatically, or, as you say, some addin.
The Account tab of Users and Computers allows you to specify a different user logon name (UPN) prefix that is different from the samAccountName (post account creation). I presume that you could customize FIM/MIM to create accounts in this form and PowerShell certainly could also be used, but there is nothing in the built-in AD toolset that would allow automatically assigning givenName.sn@xxxxxxxxxxxxxxxx as the UPN.