Home

Renaming AD Account

%3CLINGO-SUB%20id%3D%22lingo-sub-37413%22%20slang%3D%22en-US%22%3ERenaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-37413%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20running%20Federated%20domain%20setup%20with%20AD%20accounts%20on%20on-premise%20and%20synchronizing%20using%20AAD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20an%20ask%20to%20rename%20AD%20Account%20or%20UPN.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20some%20one%20please%20let%20me%20know%20what%20will%20be%20the%20impact%20if%20we%20change%20UPN%20and%20rename%20AD%20account%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWill%20the%20user%20get%20same%20access%20to%20his%20office365%20services%20like%20mailbox%2FOneDrive%2FSharepoint%2FActive%20sync%20etc%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-37413%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOutlook%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128785%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128785%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F56729%22%20target%3D%22_blank%22%3E%40Vinay%20Shekhar%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3E%3CP%3EHi%20Ivan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENeeded%20a%20small%20help%20%E2%80%93%3C%2FP%3E%3CP%3ECustomer%20has%20Sharepoint%20Onpremise%2C%20Skype%20for%20Business%20onprem%20and%20Exchange%20Onprem.%3C%2FP%3E%3CP%3ESAMAccountName%20%3A%20Contoso%5C%3CSTRONG%3EJohnDoe%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EUPN%20%3A%20JohnDoe%40contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThey%20now%20plan%20to%20move%20to%20office%20365.%20However%20before%20moving%20to%20Office%20365%2C%20they%20want%20to%20change%20the%20SAMAccountName%20as%20follows-%3C%2FP%3E%3CP%3ENew%20SAMAccountName%20%3A%20Contoso%5C%3CSTRONG%3EA123134%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EUPN%3A%20JohnDoe%40contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EQueries-%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3EWill%20their%20existing%20on-premise%20AD%20profile%20change%20when%20they%20login%20to%20the%20laptops%20after%20this%20SAMAccountName%20change%3F%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3EAny%20impact%20on%20their%20on-premise%20applications%20such%20as%20Exch%2C%20Sharepoint%20or%20SfB%3F%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3EAny%20impact%20on%20implementing%20an%20Exchange%20%2F%20Sharepoint%20migration%20if%20the%20SAMAccountName%20and%20UPN%E2%80%99s%20are%20different%3F%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20insights.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EHi%2C%20as%20for%20your%20questions%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3EWill%20their%20existing%20on-premise%20AD%20profile%20change%20when%20they%20login%20to%20the%20laptops%20after%20this%20SAMAccountName%20change%3F%3C%2FSTRONG%3E%3CUL%3E%3CLI%3ENo.%20The%20local%20user%20profile%20is%20linked%20to%20the%20users%20unique%20SID.%20Changing%20any%20attribute%20from%20that%20user%20does%20not%20affect%20a%20local%20user%20profile%20as%20the%20SID%20remains%20unchanged.%20What%20will%20change%20though%20is%20the%20logon%20username%2C%20if%20they%20used%20netbios%5Csamaccountname%20instead%20of%20username%40domain.com.%20The%20latter%20would%20still%20work%20since%20it%20hasn't%20changed.%20I've%20tried%20to%20train%20my%20users%20to%20always%20use%20their%20email%20address%20for%20logon%20in%20case%20of%20doubt.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3EAny%20impact%20on%20their%20on-premise%20applications%20such%20as%20Exch%2C%20Sharepoint%20or%20SfB%3F%3CUL%3E%3CLI%3Epossibly%20and%20also%20very%20likely.%20Depends%20entirely%20on%20the%20configuration%2C%20see%20above.%20It%20also%20comes%20to%20NetBIOS%20vs%20UPN.%20My%20recommendation%20would%20be%20to%20always%20use%20UPN%20as%20the%20logon%20attribute%2C%20wherever%20possible.%20Unfortunately%20not%20all%20applications%20support%20this%20when%20they%20claim%20AD%20Support%20or%20SSO.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3EAny%20impact%20on%20implementing%20an%20Exchange%20%2F%20Sharepoint%20migration%20if%20the%20SAMAccountName%20and%20UPN%E2%80%99s%20are%20different%3F%3CUL%3E%3CLI%3EBy%20migration%20do%20you%20mean%20migration%20to%20Exchange%20and%20SharePoint%20Online%3F%20If%20so%2C%20I%20don't%20think%20it%20will%20have%20any%20impact%2C%20as%20Azure%20AD%20Connect%20let's%20you%20pretty%20much%20choose%20what%20your%20logon%20attribute%20should%20be.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128492%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128492%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Vinay%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20change%20the%20SAMAccountName%20without%20any%20problems%20to%20Windows%20profile.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20change%20the%20user%20need%20to%20login%20with%20the%20new%20one%20in%20PC%2C%20Exchange%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECreate%20a%20test%20environment%3A%3C%2FP%3E%3CUL%3E%3CLI%3ECreate%20a%20new%20user%20with%20an%20SAMAccountName%3C%2FLI%3E%3CLI%3EConfigure%20a%20PC%20with%20all%20applications%20and%20then%20do%20a%20logoff%26nbsp%3B%3C%2FLI%3E%3CLI%3EChange%20the%20SAMAccountName%3C%2FLI%3E%3CLI%3ELogon%20in%20the%20PC%20with%20new%20one%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128434%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128434%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Ivan%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENeeded%20a%20small%20help%20%E2%80%93%3C%2FP%3E%0A%3CP%3ECustomer%20has%20Sharepoint%20Onpremise%2C%20Skype%20for%20Business%20onprem%20and%20Exchange%20Onprem.%3C%2FP%3E%0A%3CP%3ESAMAccountName%20%3A%20Contoso%5C%3CSTRONG%3EJohnDoe%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EUPN%20%3A%20JohnDoe%40contoso.com%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThey%20now%20plan%20to%20move%20to%20office%20365.%20However%20before%20moving%20to%20Office%20365%2C%20they%20want%20to%20change%20the%20SAMAccountName%20as%20follows-%3C%2FP%3E%0A%3CP%3ENew%20SAMAccountName%20%3A%20Contoso%5C%3CSTRONG%3EA123134%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EUPN%3A%20JohnDoe%40contoso.com%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EQueries-%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EWill%20their%20existing%20on-premise%20AD%20profile%20change%20when%20they%20login%20to%20the%20laptops%20after%20this%20SAMAccountName%20change%3F%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3EAny%20impact%20on%20their%20on-premise%20applications%20such%20as%20Exch%2C%20Sharepoint%20or%20SfB%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3EAny%20impact%20on%20implementing%20an%20Exchange%20%2F%20Sharepoint%20migration%20if%20the%20SAMAccountName%20and%20UPN%E2%80%99s%20are%20different%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAppreciate%20any%20insights.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-37527%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-37527%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20UPN%20doesnt%20necessarily%20need%20to%20match%20any%20email%20alias%2C%20be%20it%20the%20primary%20or%20the%20%22routing%22%20one.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-37419%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-37419%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20did%20exactly%20this%20yesterday%20and%20had%20the%20following%20experience%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3ERenamed%20Lastname%20(because%20of%20a%20typo%20error)%2C%20samaccountname%20and%20UPN%3C%2FLI%3E%3CLI%3Ewait%20for%20AAD-Connect%20sync%20(or%20do%20manually%20via%20powershell)%3CUL%3E%3CLI%3EO365%20Admin%20Center%20showed%20a%20new%20email%20address%20(with%20the%20correct%20lastname)%20and%20moved%20the%20previously%20used%20email%20address%20to%20the%20proxyAddresses%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3Ewaited%20for%20another%20AAD-Connect%20sync%2C%20but%20onPrem%20(Exchange%20Admin%20Center)%20still%20showed%20the%20old%20email%20address%20as%20the%20primary%20address.%26nbsp%3B%3CUL%3E%3CLI%3EI%20wasn't%20sure%20if%20I%20had%20to%20wait%20just%20longer%2C%20but%20I%20added%20the%20correct%20email%20address%20manually%20(because%20our%20onPrem%20Spam%20Firewall%20wouldn't%20accept%20external%20mails%20if%20there%20was%20no%20correct%20onPrem%20email%20address%20found)%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3Ethe%20mail.onmicrosoft.com%20target%20proxy%20addresses%20remain%20unchanged.%26nbsp%3B%3CUL%3E%3CLI%3EI'm%20unsure%20if%20I%20should%20manually%20add%20a%20%22correct%22%20proxy%20address%20(tenant.mail.onmicrosoft.com)%20to%20the%20online%20mailbox%20%26nbsp%3Band%20manually%20change%20the%20target%20address%20onPrem%20or%20leave%20it%20be%2C%20any%20suggestions%3F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-37418%22%20slang%3D%22en-US%22%3ERe%3A%20Renaming%20AD%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-37418%22%20slang%3D%22en-US%22%3E%3CP%3EHe%20will%20keep%20access%2Fpermissions%2C%20however%20he%20should%20now%20use%20the%20changed%20UPN%20when%20prompted%20for%20credentials.%20His%20ODFB%20URL%20will%20also%20change%2C%20all%20files%20should%20remain%20intact%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

We are running Federated domain setup with AD accounts on on-premise and synchronizing using AAD.

 

There is an ask to rename AD Account or UPN.

 

Can some one please let me know what will be the impact if we change UPN and rename AD account?

 

Will the user get same access to his office365 services like mailbox/OneDrive/Sharepoint/Active sync etc?

6 Replies
Highlighted

He will keep access/permissions, however he should now use the changed UPN when prompted for credentials. His ODFB URL will also change, all files should remain intact though.

Highlighted

I just did exactly this yesterday and had the following experience:

 

  • Renamed Lastname (because of a typo error), samaccountname and UPN
  • wait for AAD-Connect sync (or do manually via powershell)
    • O365 Admin Center showed a new email address (with the correct lastname) and moved the previously used email address to the proxyAddresses
  • waited for another AAD-Connect sync, but onPrem (Exchange Admin Center) still showed the old email address as the primary address. 
    • I wasn't sure if I had to wait just longer, but I added the correct email address manually (because our onPrem Spam Firewall wouldn't accept external mails if there was no correct onPrem email address found)
  • the mail.onmicrosoft.com target proxy addresses remain unchanged. 
    • I'm unsure if I should manually add a "correct" proxy address (tenant.mail.onmicrosoft.com) to the online mailbox  and manually change the target address onPrem or leave it be, any suggestions?
Highlighted

The UPN doesnt necessarily need to match any email alias, be it the primary or the "routing" one.

Highlighted

Hi Ivan,

 

Needed a small help –

Customer has Sharepoint Onpremise, Skype for Business onprem and Exchange Onprem.

SAMAccountName : Contoso\JohnDoe

UPN : JohnDoe@contoso.com

 

They now plan to move to office 365. However before moving to Office 365, they want to change the SAMAccountName as follows-

New SAMAccountName : Contoso\A123134

UPN: JohnDoe@contoso.com

 

Queries-

  • Will their existing on-premise AD profile change when they login to the laptops after this SAMAccountName change?
  • Any impact on their on-premise applications such as Exch, Sharepoint or SfB?
  • Any impact on implementing an Exchange / Sharepoint migration if the SAMAccountName and UPN’s are different?

 

  

Appreciate any insights.

 

Highlighted

Hi Vinay,

 

You can change the SAMAccountName without any problems to Windows profile.

 

When you change the user need to login with the new one in PC, Exchange, etc.

 

Create a test environment:

  • Create a new user with an SAMAccountName
  • Configure a PC with all applications and then do a logoff 
  • Change the SAMAccountName
  • Logon in the PC with new one
Highlighted

@Vinay Shekhar wrote:

Hi Ivan,

 

Needed a small help –

Customer has Sharepoint Onpremise, Skype for Business onprem and Exchange Onprem.

SAMAccountName : Contoso\JohnDoe

UPN : JohnDoe@contoso.com

 

They now plan to move to office 365. However before moving to Office 365, they want to change the SAMAccountName as follows-

New SAMAccountName : Contoso\A123134

UPN: JohnDoe@contoso.com

 

Queries-

  • Will their existing on-premise AD profile change when they login to the laptops after this SAMAccountName change?
  • Any impact on their on-premise applications such as Exch, Sharepoint or SfB?
  • Any impact on implementing an Exchange / Sharepoint migration if the SAMAccountName and UPN’s are different?

 

  

Appreciate any insights.

 


Hi, as for your questions:

 

  • Will their existing on-premise AD profile change when they login to the laptops after this SAMAccountName change?
    • No. The local user profile is linked to the users unique SID. Changing any attribute from that user does not affect a local user profile as the SID remains unchanged. What will change though is the logon username, if they used netbios\samaccountname instead of username@domain.com. The latter would still work since it hasn't changed. I've tried to train my users to always use their email address for logon in case of doubt.
  • Any impact on their on-premise applications such as Exch, Sharepoint or SfB?
    • possibly and also very likely. Depends entirely on the configuration, see above. It also comes to NetBIOS vs UPN. My recommendation would be to always use UPN as the logon attribute, wherever possible. Unfortunately not all applications support this when they claim AD Support or SSO.
  • Any impact on implementing an Exchange / Sharepoint migration if the SAMAccountName and UPN’s are different?
    • By migration do you mean migration to Exchange and SharePoint Online? If so, I don't think it will have any impact, as Azure AD Connect let's you pretty much choose what your logon attribute should be.
Related Conversations