How we can create or get the mailbox usage report via Graph API by setting it up in AAD and graph API something similar?

Vinod Survase 4,726 Reputation points
2023-11-21T14:11:07.9+00:00

How we can create or get the mailbox usage report via Graph API by setting it up in AAD and graph API something similar?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,279 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,321 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,454 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AsithwMSFT 1,420 Reputation points Microsoft Vendor
    2023-11-27T00:50:52.79+00:00

    @Vinod Survase

    If you are looking API for mailbox usage reports. you can use Graph APIs endpoint such as

    GET /reports/getMailboxUsageDetail(period='{period_value}')
    

    For more details, please find the documentation Mailbox usage reports , Get details about mailbox usage.

    This can be tested via graph explorer .

    If you want to register AAD (Microsoft Entra ) app., follow the this document.

    afterward, you have to generate token for executing the graph API by consenting to the app.

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

    0 comments No comments