Hi @S T ,
In Azure AD Connect, prevent accidental deletes is enabled by default and configured to not allow an export with more than 500 deletes. If you have more than 500 users to be deleted, you need to disable it by using below cmdlets:
- To retrieve the current deletion threshold, run the PowerShell cmdlet Get-ADSyncExportDeletionThreshold. Provide an Azure AD Global Administrator account and password. The default value is 500.
- To temporarily disable this protection and let those deletes go through, run the PowerShell cmdlet: Disable-ADSyncExportDeletionThreshold. Provide an Azure AD Global Administrator account and password. Credentials
- With the Azure Active Directory Connector still selected, select the action Run and select Export.
- To re-enable the protection, run the PowerShell cmdlet: Enable-ADSyncExportDeletionThreshold -DeletionThreshold 500. Replace 500 with the value you noticed when retrieving the current deletion threshold. Provide an Azure AD Global Administrator account and password.
After Disable-ADSyncExportDeletionThreshold, run a full sync cycle.
-----------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.