Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

"Update users from Microsoft 365" causes duplicate users to be created

(0) ShareShare
ReportReport
Posted on by 181

Hi,

Recently a former staff member has rejoined our company. I'm tasked with reactivating her account in Microsoft 365. After I did this, I logged into Business Central and selected "Update users from Microsoft 365" to get the most up to date information (e.g. to sync BC and Microsoft 365 together).

What happened is that a new user gets created in Business Central instead. As her email is the same, they only differ by the case of her name. Initially only the account is Gerri@theemail.com exists, but now this account and gerri@theemail.com exists. (small g vs capital G).

I was wondering if there is a reason why a duplicate account (with email differing by the case) be created instead of the capital G one being reactivated? If I delete the small g account and then click on the "Update users" link, it reappears.

To solve this problem, would I have to make changes in Business Central or would it have to be done in the Microsoft 365 level?

Jason

  • Jason Yeung Profile Picture
    Jason Yeung 181 on at
    RE: "Update users from Microsoft 365" causes duplicate users to be created

    Hi Marco,

    Thanks for the info.

    Sincerely,

    Jason

  • Suggested answer
    pankaj.k Profile Picture
    pankaj.k 962 on at
    RE: "Update users from Microsoft 365" causes duplicate users to be created

    Hi Jason Yeung ,

    you can do unwanted User Disable for  resolving the issue.

  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: "Update users from Microsoft 365" causes duplicate users to be created

    Hello,

    Unfortunately not, the account is left there for audit purposes. Best probably is to undelete the initial account if still possible in Office 365, give it a unique name, update the user in BC and then delete it again from Office 365. The old / deleted account should be set to disabled in BC.

    In theory, nothing is wrong here. The deleted account is still in BC (because Gerri once logged on and maybe did do some business like posting transactions in BC). Then a new account was created with same name.

    From technical point of view, it is a new account with an unique identifier. You will see the difference once you export the users via PowerShell.

    Thanks.

  • Jason Yeung Profile Picture
    Jason Yeung 181 on at
    RE: "Update users from Microsoft 365" causes duplicate users to be created

    Hi Marco,

    I talked with our IT team, who handles the Office 365 user management and was told that even though the emails are the same, when the employee left the first time, the account was deleted. When she rejoined, a new account with the same email address was created, only differing by the small g.

    It appears that when I ran the "Update users from Microsoft 365" process, because it's a new account, it creates it in Business Central. But it kept the original one. When Gerri tries to log into Business Central, it's probably getting confused as to which one to use. Is there a way to delete the original account or merge the 2 together?

    Jason

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: "Update users from Microsoft 365" causes duplicate users to be created

    Hello,

    That looks like an issue. Are you able to verify via PowerShell if there are no duplicates within Office 365?

    Hope this helps already.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans