Azure AD Connect deleted my Azure/M365 Admin account

Christian Jaglitsch 0 Reputation points
2023-08-14T19:32:18.9266667+00:00

After Updating our on-premise AD-Server, the AD Connect Synced the Users and my Azure AD/M365 Admin Account User was deleted and a new one with the same user Credentials was created in the Azure Account but the Admin-Privileges are missing from this account, so is the Connected M365 Business License.
Same thing happend with all Users in the Account. All Users where deleted and newly created. Alle without privileges and licences.

Can anybody help?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,771 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,274 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,125 Reputation points
    2023-08-14T19:41:25.5866667+00:00

    If the deleted users are still within the retention period, you can restore them using PowerShell or the Azure AD portal. Here's an example PowerShell script to restore a deleted user:

    Restore-AzureADMSDeletedDirectoryObject -Id <ObjectId>
    

  2. Dillon Silzer 57,711 Reputation points
    2023-08-17T16:34:28.32+00:00

    If you still have access to the Global Admin Portal, I would recommend raising a ticket with Microsoft. You may also raise a ticket in Entra AD.

    Open a support request in Azure Active Directory

    https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/how-to-get-support#open-a-support-request-in-azure-active-directory


    If this is helpful please accept answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.