Read the Entra audit logs: who changed what
In this task you'll find out who changed something in Entra ID.
The audit logs record changes to the directory: users created, groups changed, roles assigned, apps registered, passwords reset, settings changed. Each entry says who did it, when, and what changed.
They're the Entra ID version of the Azure activity log, which records changes to Azure resources instead.
Example. Ironbridge Payments notices a new Global Administrator nobody remembers adding. The audit logs show the role assignment, the admin who made it, the time and the IP address, so the team can check whether it was a mistake or an attack.
Before you start
You need: Reports Reader, Security Reader or Global Reader. Time: 5 minutes.
Where to look
- Home
- Microsoft Entra ID
- Monitoring
- Audit logs
Steps
- Open Microsoft Entra ID, expand Monitoring and select Audit logs.
- The filters show as buttons along the top. Select Date range: Last 24 hours and choose the last 7 days.A banner offers to switch back to the older layout. You don't need to.
- Select Category : All, choose RoleManagement to see role changes (or UserManagement for users) and select Apply.
- Select an entry. The Activity tab shows who did it and when; Target(s) and Modified Properties show exactly what changed.
- To see one person's changes, open the user from Users and select Audit logs in their own menu.
Commands
# Last 10 directory changes
az rest --method get --url "https://graph.microsoft.com/v1.0/auditLogs/directoryAudits?\$top=10" \
--query "value[].{when:activityDateTime, what:activityDisplayName, by:initiatedBy.user.userPrincipalName}" --output table
Watch out for
- Cost
- Free to read. 7 days on Free, 30 days on P1 and P2.
- Security
- Role assignments and new app credentials are the entries attackers create. Consider an alert on them through Log Analytics.
- Common mistakes
- Looking in the Azure activity log for Entra changes: it doesn't record them.
Clean up
Nothing to clean up. This task only reads.
Words to know
- Activity
- What happened, such as Add member to role.
- Initiated by
- The user or app that made the change.
- Target
- What was changed: the user, group, app or policy.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On