Fix Disabled Active Directory Users Still Signing In to Microsoft 365
Question details
Determine how to prevent a disabled on-premises Active Directory user from signing in to Microsoft 365 while handling synchronization appropriately.

- Product
- Microsoft Entra Connect and Microsoft 365
- Device & OS
- not provided
- Scenario
- An administrator disables a user in on-premises Active Directory and expects Microsoft 365 sign-in to be blocked.
- Observed behavior
- Disabling the on-premises user does not always appear to prevent Microsoft 365 sign-in.
Identify the affected user and confirm that the account is synchronized from on-premises Active Directory. You will need appropriate Active Directory and Microsoft Entra administrative permissions, plus access to the Entra Connect server.
Verify and synchronize the disabled account state
Use this approach when the user should remain synchronized but be blocked from signing in.
A synchronized user can remain in Microsoft Entra ID while its disabled state is reflected in the cloud. Review custom synchronization rules if the expected state is not applied.
Open Active Directory Users and Computers, find the user, and confirm that the account is disabled. Alternatively, run Get-ADUser -Identity <username> -Properties Enabled in Active Directory PowerShell and check the Enabled value.
On the Microsoft Entra Connect server, open PowerShell and run Start-ADSyncSyncCycle -PolicyType Delta. Allow the cycle to finish before checking the cloud account.
In the Microsoft Entra admin center, go to Identity > Users > All users, select the user, and check the account status and synchronization details. Use Monitoring & health > Sign-in logs to investigate recent sign-in activity.
On the Entra Connect server, open Synchronization Service Manager and review the Operations tab for errors. If the state is still incorrect, use Synchronization Rules Editor to review any custom rules that affect the user, and consult Microsoft documentation before changing them.
In the Microsoft Entra admin center, open the affected user's page and select Revoke sessions when immediate access removal is needed. Existing access tokens can remain valid until they expire or are otherwise invalidated, so verify access separately.

Work with Office files using WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easy to move everyday document work. It does not manage Microsoft Entra accounts or fix synchronization.

Frequently Asked Questions
Does disabling an Active Directory user remove it from Microsoft 365?
Not normally. The user can remain synchronized while its disabled state is reflected in Microsoft Entra ID. Check the user under Identity > Users > All users after synchronization completes.
How can I trigger synchronization after disabling a user?
On the Microsoft Entra Connect server, open PowerShell and run Start-ADSyncSyncCycle -PolicyType Delta. Then check Synchronization Service Manager for the cycle result.
Why might a disabled user still have access?
The disabled state may not have synchronized yet, a sync error or custom rule may be involved, or an existing access token may still be valid. Check Synchronization Service Manager and Microsoft Entra sign-in logs, and revoke the user's sessions if needed.
Should I exclude the disabled user from synchronization?
Only if removing the user from synchronization is the intended outcome. A filtering change can delete the cloud user and affect associated services; review Microsoft's filtering and deletion documentation before changing the scope.




