How can we list mails in a O365 quarantine using graph api

Rahul 25 Reputation points
2024-02-22T05:43:34.4433333+00:00

Hi,

We have one use case where we would like to use graph apis to get the following-

  1. List mails in the MS quarantine (Eg: https://security.microsoft.com/quarantine?viewid=Email&tid=455456b4-76b5-42bf-aeaf-a562b7956701)
  2. We would like to get all the metadata/related fields related to a quarantined mail.

Went through graph api documentations, but nothing talks about this support.

Seeking your pointers regarding this.

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 115.3K Reputation points MVP
    2024-02-22T07:52:55.27+00:00

    There is no direct way to get this data via the Graph, instead you should use Exchange Online PowerShell and the Get-QuarantineMessage cmdlet.

    I suppose you can create something similar via the Advanced Hunting endpoint under /security: https://learn.microsoft.com/en-us/graph/api/security-security-runhuntingquery?view=graph-rest-beta&tabs=http

    0 comments No comments

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.