View audit logs for specific graph api operation based on activity identifier

Mikhail Delly 126 Reputation points
2022-08-29T07:54:09.18+00:00

Hi

Is it possible to view audit logs for specific graph API call based on unique id (for example update user operation)?

There is a possibility to get directory audit to view graph api exectuted operations by:

GET /auditLogs/directoryaudits
GET /auditLogs/directoryAudits/{id}

The response contains unique IDs:
235638-image.png

I've made sure that request_id / corellation_id which is returned with response during graph api call is different to audit log's corellationId and couldn't be used to find audit logs for those api call.
https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http

235683-image.png

Is this any way to keep data during request and use it to find audit data for it later or any alternative way?

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 6,081 Reputation points
    2022-08-29T17:01:32.657+00:00

    Hi @Mikhail Delly

    To address your issue I have updated some users in my trial tenant account and I am able to get that in UserManagement category in AuditLog Graph API.

    235807-audit1.png

    As you can see I am getting "Id" for that particular Log. Use this Id in Get Audit Log Graph API. Please refer below screenshot.
    235808-log1.png

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.