Details

This atomic belongs to the Microsoft Graph: Mail atomic group.

Searches for mail folders for a user using Microsoft Graph. This atomic requires one of the following API permissions: Mail.ReadWrite, Mail.Read.

Target: Microsoft Defender for Office 365 (Commercial or GCC) integration target or HTTP endpoint for "graph.microsoft.com"

Account Key: None if using an integration-provided target, access token if using an HTTP Endpoint target

Steps:
[] Build the authorization header and query string
[] Search for mail folders
[] Check if the request was successful:
[]> If it was, attempt to extract the results and set the output variables
[]> If it wasn't, return an error

More information about this API: https://learn.microsoft.com/en-us/graph/api/user-list-mailfolders