rename user names

Version 2

    when you sync users from AD, often, the userPrincipleName is not in the format of userName@WindowsDomain (, but more likely to be (  If you use domain authentication, you can't authenticate because is not a Windows domain.  If you use ADPROD.BMC.COM, BSA will not be able to find because that's is not what is synced.


    To work-around this dilemma, this script is created so you can change the userPrincipalName from to after a user sync job and rename it back before a users re-sync job.