Duplicate Users in Office365

4 Dec

 

Both saying synced with AD however only one account exists

I’ve had to manually delete users from O365 during a DirSync deployment. Use PowerShell on the server running DirSync to run these commands:

Import-Module MSOnline

Connect-MsolService  [Enter your Office 365 admin credentials when prompted]

remove-msoluser –userprincipalname UID@UPN.com

If the account is in Deleted Users in Office 365, append the last command with -RemoveFromRecyclebin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: