Does Microsoft 365 Sign-In Reset Active Directory Account Expiry?
Question details
The user needs to know if active remote student sign-ins on Microsoft 365 will prevent their linked on-premises Active Directory accounts from being automatically disabled due to inactivity policies.

- Product
- Microsoft 365 / Active Directory
- Device & OS
- not provided
- Scenario
- Administrators are trying to automatically disable unused on-premises accounts without accidentally disabling students who actively use Microsoft 365 exclusively from home.
- Observed behavior
- Microsoft 365 sign-ins are authenticated by Microsoft Entra ID and do not update the on-premises Active Directory logon timer, causing active remote users to be flagged as inactive locally.
Ensure you have administrative access to both your on-premises Active Directory environment and the Microsoft Entra ID admin center to review account synchronization and sign-in logs.
Use Microsoft Entra ID Sign-In Reports for Inactivity Checks
Instead of relying solely on the on-premises Active Directory logon timer, update your account disabling process to factor in Microsoft 365 sign-in activity.
Because on-premises Active Directory and Microsoft Entra ID are separate authentication systems, a cloud sign-in does not natively communicate back to the on-premises environment. By incorporating Microsoft 365 sign-in logs into your inactivity scripts, you can safely exclude active remote students from being disabled.
Log in to the Microsoft Entra admin center using an account with at least Reports Reader or Security Reader permissions.
Go to 'Identity' > 'Monitoring & health' > 'Sign-in logs' to view recent authentication activity for your users.
Export the sign-in logs or utilize the Microsoft Graph API to programmatically pull the 'lastSignInDateTime' attribute for your users.
Modify your internal on-premises account disabling process (e.g., PowerShell scripts) to verify a user's cloud sign-in activity before disabling their on-premises account.

Implement Active Directory Federation Services (AD FS)
Federate Microsoft Entra ID with your on-premises Active Directory to force all cloud authentication requests to be processed locally.
Looking for a cost-effective productivity solution for students?
While managing complex Microsoft 365 and Active Directory environments requires specialized IT focus, deploying a reliable office suite to your students doesn't have to be difficult or expensive. WPS Office is a powerful, lightweight alternative to Microsoft Office that meets the daily educational needs of students globally.
- 1. Visit the official website: Go to the official WPS Office website to access the free installer.
- 2. Download the software: Click the 'Free Download' button to get the setup file appropriate for your operating system.
- 3. Install and start working: Run the installer, follow the on-screen prompts, and immediately begin opening, editing, and saving your documents in formats fully compatible with Microsoft Office.

Frequently Asked Questions
Why doesn't Azure AD Connect directory synchronization update the local logon timer?
Directory synchronization tools like Microsoft Entra Connect push identity data and credentials from your on-premises Active Directory to the cloud. However, they do not write authentication events or sign-in timestamps back to your local Active Directory because the cloud and local systems operate as independent authentication endpoints.
Is Pass-through Authentication (PTA) the same as AD FS for updating logon times?
While Pass-through Authentication does validate passwords directly against on-premises Active Directory controllers via a lightweight agent, it generally acts as a background validation check and does not always reliably update the traditional interactive 'lastLogon' or 'lastLogonTimestamp' attributes in the same way a local workstation logon or AD FS federated logon does.
Can I request Microsoft to change how cloud sign-ins affect local AD?
Because Active Directory is an older, distinct on-premises technology and Microsoft Entra ID is cloud-native, natively syncing logon attributes backwards is not a supported feature. Microsoft recommends adopting cloud-centric management tools and utilizing Microsoft Graph APIs to monitor unified account activity.




