• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 629
  • Last Modified:

OFFICE 365 : Server 2012 Essentials : Duplicate User after Powershell user import

I created a user account through Active Directory instead of the server 2012 essentials dashboard.  I then imported the user account using powershell.

In the dashboard, I then modified the user account to assign folder permissions, remote access, and added Office 365 account.

There is now a duplicate user listed in the dashboard (see attached screenshot).

The second "duplicate" user has a login name of "domain\username" instead of just the username.

The user cannot log on to the remote access webpage with either username.

I want to delete the second user (domain\username).  The option to "Assign Office 365 account" is displayed (highlighted in screenshot), but when you go into the user account properties the 365 account is listed.  It is the same Office 365 account as the original user.

Error when trying to deactivate the user account:  
Cannot retrieve the user account information.  An unknown error prevented the wizard from retrieving the user account information. If this problem persists, restart the server, then try again.

I want to attempt to delete the duplicate user, but I do not want to accidentally delete the Office365 profile.

Thank you for your help!
1 Solution
Vasil Michev (MVP)Commented:
There is no attachment :)

As for fixing the issue, you can remove the user in the Cloud and hope that next synchronization doesnt duplicate it again. You have two options here:

- User the Windows Azuer module for PowerShell and the Remove-MSOLUser command
- Filter the user from the DirSync UI so it gets removed from the cloud

Of course be careful which one you will apply the action on, as you might end up deleting the correct one (you should still be able to recover it from the Deleted users container). If he has any important messages in his mailbox, make a backup first in case anything goes wrong.

Here are some links:

Windows Azure module for Windows PowerShell:

Help on Remove-MSOLUser cmdlet:

Configure filtering for directory synchronization:
ebsadminAuthor Commented:
Attached screenshot.
Screenshot of 2012 Dashboard / Users
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now