Dear Reader,
I've got a business question regarding making the UPN Prefix Lowercase. Our current setting is configured as followed: Account Name (UPN Prefix) mus be <Value> (generated default value). The value is set to use %<givenName>.%<sn>.Because of this some IT Admins use Uppercase and Lowercase for an users givenName and sn and then the UPN will also be with Uppercase and Lowercase.
Offcourse we can instruct our IT Admins to just use lowercase, but you know how that goes... I have tried two ways to make this work through a Create User Policy, but they all have a downside to them and i'm hoping that someone has the solution for me.
1. Use Mask (wildcard).
So for the default value i've setup a mask (wildcard) that only allows lowercase. However when i enable this the UPN default generated value will not work anymore, because a default value cannot include a wildcard (see attachment). So unticking the default value works, but however the automation for UPN is gone and this is not handy.
2. Setup sAMAccountName lowercase
I've setup the sAMAccountName to be lowercase and then used the generated default value to use the sAMAccount name. This works good, but it will copy the sAMAccount name that is limited to 20 characters. And we create account name that might be longer then that.
I've tried to change the UPN through script to lowercase during the creation of an user, however my scripting skills ain't that pro. So i didn't came that far with it (yet).
So i was kinda hoping someone else got an idea i can try
Greetings,
J. Kooij