Fetch quarantiend email from protection.office.com through API

Dhaval Dave 11 Reputation points
2021-08-31T07:37:57.363+00:00

Hey, I want to retrieve the quarantined email from protection.office.com. Is there any way to get those email or email headers through an API? I looked up graph API couldn't find anything. Thanks

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 95,836 Reputation points MVP
    2021-08-31T07:57:00.837+00:00

    Graph API does not provide any Exchange-related endpoints currently, what you can do is use PowerShell and the Get-QuarantineMessage cmdlet: https://learn.microsoft.com/en-us/powershell/module/exchange/get-quarantinemessage?view=exchange-ps

    2 people found this answer helpful.