Get-MgAuditLogSignIn is a Microsoft Graph PowerShell cmdlet used to query sign-in audit logs. It returns records about user and service sign-ins, including timestamps, conditional access results and authentication details, so administrators can review access events, investigate anomalies and support identity monitoring.
What the cmdlet does in Microsoft 365 auditing
Get-MgAuditLogSignIn is a Microsoft Graph PowerShell cmdlet for querying Entra sign-in audit records. It helps administrators retrieve a structured view of access events so they can review who signed in, when it happened, and what authentication outcome or policy decision was recorded.
As a read-only query tool, it sits in the investigation and monitoring layer rather than the enforcement layer. That distinction matters: the cmdlet does not change sign-in policy, but it exposes the evidence needed to understand whether controls are working as intended.
What the returned sign-in data is used for
The records returned by this cmdlet are typically used to support identity monitoring, incident triage, and authentication troubleshooting. Timestamps, conditional access outcomes, and sign-in details can help an operator correlate suspicious activity with user reports, failed logons, or policy changes.
Because sign-in logs reflect both successful and unsuccessful access attempts, they are useful for seeing the normal pattern of access as well as the first signs of abuse. In practice, the same data can support operational debugging and security review, which is why audit log access itself should be tightly governed.
Where organisations use Microsoft Graph at scale, the surrounding control expectation is often log integrity, least-privilege access to telemetry, and monitoring of who can query sensitive audit data. NIST SP 800-53 Rev 5 Security and Privacy Controls is a useful reference for those access, audit and monitoring relationships.
How it fits into identity operations
This cmdlet is most valuable when paired with an understanding of the surrounding identity lifecycle: authentication events, conditional access decisions, and session activity all form part of the trace an administrator reviews after a sign-in. The log output is therefore evidence, not authority, and it should be interpreted alongside policy configuration and directory context.
It also helps distinguish user behaviour from service or automation behaviour when those sign-ins are present in the tenant. That separation is important during investigation because a routine service authentication may look unusual if it is viewed without knowledge of the workload, application, or schedule that generated it.
For organisations that centralise identity telemetry into broader detection and response workflows, NIST Cybersecurity Framework 2.0 provides a useful way to place sign-in review inside identify, detect, respond and recover activities.
Common failure modes and practical limits
Sign-in logs are only as useful as the visibility they provide and the retention window available to the organisation. If collection is incomplete, delayed, or not reviewed, suspicious behaviour can blend into normal access patterns and become harder to reconstruct later.
Another limitation is overreliance on a single event source. A sign-in record can confirm that an authentication event occurred, but it may not by itself explain why the access was allowed, what the user did afterwards, or whether a broader compromise was already underway. Investigation usually needs correlation with other telemetry, not just one query result.
For teams using cloud identity services, this kind of log review also benefits from a zero-trust mindset: verify access continuously, assume that telemetry must be corroborated, and treat abnormal sign-in context as a signal for deeper review. NIST SP 800-207 Zero Trust Architecture aligns well with that approach.
Risk and Threat Considerations
Sign-in logs can become a security exposure if they are not protected, because they reveal authentication patterns, account activity, and sometimes the investigative trail for privileged users or sensitive services. They are also valuable to attackers once an environment is compromised, since reviewed logs can help them understand detection coverage and whether their access has been noticed.
Failure mechanism: Weak access control, excessive telemetry access, or poor review discipline allows malicious activity to remain hidden in normal-looking sign-in noise, while log exposure can reveal account, policy, and control details that assist follow-on abuse.
Impact: Missed anomalous sign-ins can delay compromise detection, and exposed audit data can support lateral movement, persistence, or more targeted credential abuse.
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 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-6 — Audit Review, Analysis, and Reporting | Sign-in logs are audit records that need review and analysis. |
| AC-6 — Least Privilege | Access to sign-in telemetry should be limited to those who need it. | |
| IA-2 — Identification and Authentication (Organizational Users) | The cmdlet exposes sign-in outcomes tied to user authentication events. | |
| Recommendation — Review sign-in audit events for anomalies and escalate suspicious patterns promptly. Restrict who can query and export sign-in logs to the minimum necessary set. Correlate sign-in records with authentication policy decisions to validate identity controls. | ||
| NIST CSF 2.0 | DE.CM-01 — Networks and network services are monitored to detect potential cybersecurity events | Sign-in logs support continuous monitoring for suspicious access activity. |
| DE.AE-03 — Potential anomalies and events are analyzed to identify cybersecurity events | Sign-in records help analyze abnormal authentication and access patterns. | |
| Recommendation — Use sign-in telemetry as part of continuous monitoring for abnormal access behaviour. Analyze anomalous sign-in patterns to determine whether they indicate a cybersecurity event. | ||
Practitioner Guidance
Why practitioners should care: This cmdlet is often used at the point where monitoring turns into investigation, so its value depends on disciplined access to the underlying logs and a repeatable review process. If administrators can query sign-ins but no one owns the interpretation, the organisation gains visibility without actionability.
What to watch for: Unexpected sign-in times, unfamiliar locations, repeated failures followed by success, and authentication outcomes that conflict with the user’s normal behaviour are all reasons to dig deeper. The practical question is not just whether a sign-in occurred, but whether its context matches the account and the business process it supports.
Practitioner takeaway: Treat the cmdlet as a forensic and monitoring tool, not a control in itself, and pair its use with logging governance, access restrictions, and clear escalation paths for suspicious authentication events.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org