Graph API Security: get related activities for a DLP report

Kevin Urban 1 Reputation point
2022-12-22T14:57:06.887+00:00

Hi!

I'm trying to fetch related activity data for a security alert of category data loss prevention.

For example:

  • I do a GET request on https://graph.microsoft.com/v1.0/security/alerts_v2?$filter=serviceSource in ('microsoftDataLossPrevention')&$orderby=createdDateTime desc
  • I receive a response with several alerts, including evidence etc. which is good.
  • When I go to Purview (compliance.microsoft.com), go to alerts, and find the alerts, the same evidence, etc. Also good.
  • HOWEVER, in Purview, the alert contains an activity list, which tells me exactly what the user did. (see attached screenshots). I cannot seem to find this anywhere on the graph API. Can you give me a pointer on how to get to this information? The Alerts don't seem to contain anything at all about related activity (there's "only" evidence, which contains user, device, file, etc. but not what the user tried to do). In this Example, I'm specifically interested in getting the "WebPageCopiedToClipboard" information.

273392-image.png
273300-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,798 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. !Daniel Bradley 1,056 Reputation points MVP
    2022-12-22T16:13:11.967+00:00

    Hey,

    On the alerts page can you customise the columns to show the alert ID, you can then add the alert ID to the URI, for example:

    https://graph.microsoft.com/beta/security/alerts_v2/{alert-id}  
    

    Please can you advise on the results?


  2. VICTOR.T 0 Reputation points
    2023-02-15T05:04:47.96+00:00

    Hi,

    In my experience, Microsoft 365 Defender advance hunting API function - CloudAppEvents can show the user activities.
    Graph API advance hunting should be the same.

    Hope it helps you.

    Ref:

    0 comments No comments