I'm trying to figure out how I can update the username of a given user in Office 365. We use Azure AD Connect to sync our on premise Active Directory with Office 365. I've tried to simply change the logon name in AD on prem. After verifying that the sync
took place the username did not update on the Office 365 side. Any help is greatly appreciated! Thank you
I've tried using the commands...
>Set-MsolUserPrincipalName -NewUserPrincipalName *** Email address is removed for privacy *** -UserPrincipalName *** Email address is removed for privacy ***
but then I get an error staying that I do not have permission to call this cmdlet.
I got the permission denied error because I wasn't using the correct "oldname". The "oldname" has to match with what Azure has. After making "oldname" match with what Azure currently had it worked and Azure/Office 365 was updated with the new username.