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>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
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>
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
If this is helpful please accept answer.