Join our Newsletter — 33% off our NHI Course
NHI Lifecycle Management

LastLogon

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: NHI Lifecycle Management

LastLogon is a user account attribute that records the most recent logon on a specific domain controller. In Active Directory it is not replicated, so administrators compare values across controllers or use related replicated attributes to understand recent sign-in activity and account use.

What LastLogon tells you about sign-in activity

LastLogon is useful when you need the most recent authentication event recorded by a specific domain controller. Because the attribute is local to each controller, it reflects one slice of logon history rather than a single authoritative domain-wide timestamp. That makes it valuable for troubleshooting, but also easy to misread if you assume it is replicated.

Why administrators compare it across controllers

In a multi-controller Active Directory environment, each domain controller can have a different LastLogon value for the same account. The practical question is often not whether the account ever logged on, but which controller saw the newest sign-in and whether the account has been active recently enough to justify access, investigation, or cleanup. Administrators therefore compare values across controllers or use related replicated attributes when they need a broader view.

The attribute is most useful as an operational signal, not as a standalone source of truth. A low or stale value on one controller does not prove inactivity across the domain, and a recent value on one controller can hide older state elsewhere. The real value is in reconstructing account activity with enough precision to support administration, audit, or incident triage.

How LastLogon differs from replicated sign-in attributes

LastLogon exists in contrast to replicated account attributes that are designed to travel with directory replication. That distinction matters because replicated attributes are easier to query centrally, while LastLogon is more precise on a per-controller basis. If you need the exact most recent logon seen by a particular controller, LastLogon is the right field; if you need a domain-wide overview, you usually need to aggregate across controllers or rely on a different replicated attribute.

This is why LastLogon often appears in account-lifecycle work, especially when teams are validating dormant accounts, investigating unusual sign-in patterns, or checking whether an account is still in use after a change. The attribute itself is simple, but the interpretation requires awareness of directory topology and replication behavior.

What this means for account review and investigation

LastLogon becomes most valuable when paired with a defined review process. It can help distinguish genuinely unused accounts from accounts that only authenticate intermittently, and it can help investigators narrow the time window for a suspicious sign-in. It is also a reminder that directory attributes can support security decisions only when their scope and limitations are understood.

For that reason, LastLogon should be treated as part of a wider evidence set that includes directory replication knowledge, account ownership, and other sign-in telemetry. Used carefully, it helps answer a specific operational question: where was the last successful logon recorded, and what does that say about the account's current status?

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AU-6 — Audit Review, Analysis, and ReportingLastLogon supports review of sign-in activity across controllers.
IA-2 — Identification and Authentication (Organizational Users)The attribute records successful user authentication events on a domain controller.
AC-2 — Account ManagementLastLogon is commonly used to support account lifecycle and inactivity review.
Recommendation — Correlate logon records and review account activity to detect stale or suspicious access patterns. Use authenticated sign-in evidence to validate account activity and access decisions. Use recent logon evidence to identify accounts for review, disablement, or cleanup.
NIST CSF 2.0ID.AM-01 — Physical devices and systems within the organization are inventoriedDirectory controllers and account telemetry depend on accurate inventory and visibility.
Recommendation — Maintain asset and directory inventories so logon evidence can be interpreted correctly.
CIS Controls v8CIS-5 — Account ManagementPer-account logon history supports account governance and inactive-account handling.
Recommendation — Track account use and remove or disable accounts that no longer need access.

Practitioner Guidance

What to watch for: Use LastLogon when you need controller-level precision, especially during account hygiene work or investigation of suspicious activity. Do not use it alone as a domain-wide inactivity indicator, because the value is intentionally non-replicated and may differ across controllers.

Governance implication: Define which directory attribute is authoritative for dormant-account review, reporting, and escalation so teams do not mix per-controller evidence with domain-wide reporting. The ownership decision matters as much as the query itself.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org