rename user names

Version 2
    Share:|

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

     

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