Microsoft Entra Id Sign-in Logs
You review microsoft entra id sign in logs by assigning a directory reader role to your security team. These logs show who tried to log in, which app they opened, and whether the login worked. Most teams set up this log view first to watch for bad login attempts. Still, teams often hand out broad directory roles just to read these records. Broad roles let too many people change rules or read sensitive user profiles. How microsoft entra id sign in logs work Every time a person or service logs
Microsoft Entra ID (Azure AD) + PII in Logs Prevention: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
You review microsoft entra id sign in logs by assigning a directory reader role to your security team. These logs show who tried to log in, which app they opened, and whether the login worked. Most teams set up this log view first to watch for bad login attempts. Still, teams often hand out broad directory roles just to read these records. Broad roles let too many people change rules or read sensitive user profiles.
How microsoft entra id sign in logs work
Every time a person or service logs in, the identity provider writes an event record. This record holds the user name, the target app, the time, and the device state. It also shows which conditional rules ran during the login check. Interactive logins from people and non-interactive logins from background scripts go into separate log views.
To read microsoft entra id sign in logs, an admin must hold a specific directory role. Teams should assign a read-only security role instead of a global admin role. This read-only role lets engineers check login events without letting them change user accounts. Teams also route these log streams to a central log store for long-term search. Keeping logs in an external store helps teams spot strange login patterns across many weeks.
What sign-in logs solve and what they miss
Directory sign-in logs are great for proving who logged into a cloud portal or app. They help security teams spot stolen passwords, blocked locations, and broken background service keys. When an alert fires, an engineer can check the log and block the user account.
Still, sign-in logs stop tracking once the user gets past the front door. They decide and record who logs in, not what individual commands or queries do next. When an engineer opens a database or server session, the directory only sees the login. It does not record the SQL statements, shell commands, or API calls run inside that session. If a developer runs a destructive command or pulls customer emails, the sign-in log stays quiet. Teams still lack a clear trail of what happened inside the database or host.
Microsoft Entra ID (Azure AD) + PII in Logs Prevention: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Why teams need action-level checks after login
Relying only on directory logs leaves a large blind spot during audits and incident reviews. Auditors ask which specific records an engineer read or changed during a support ticket. A login timestamp alone cannot answer that question for a shared database role. Also, directory rules cannot pause a risky drop statement or mask phone numbers in query results.
To close this gap, teams pair identity login checks with controls that watch active sessions. Identity logs prove the user passed the login check at the start of the day. Action-level controls check every command, require peer approval for risky writes, and rewrite card numbers in results. Together, these two layers give security teams full visibility from login to the final command.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
What do Microsoft Entra ID sign-in logs record?
They record the user identity, target app, login time, IP address, and conditional rule results. They cover both human logins and automated service logins across your connected apps.
Which role should teams use to read sign-in logs?
Teams should assign a read-only security or report reader role to staff who review logs. This avoids giving out full admin rights that can alter users or security rules.
Do sign-in logs show database queries or server commands?
No, sign-in logs only show that a user or app passed the initial login check. They do not capture SQL queries, shell commands, or data returned inside the session.
Related guides
In this post