Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Graph API in Power BI

Good afternoon everyone, I hope everyone is doing fine!

I am currently doing my internship together with my classmate in which we are developing a user friendly dashboard for MSP companies for more insight into their IT-environment.

 

To achieve this, we want to establish a connection with the Microsoft API Graph in which we gather the following data: mailbox usage size, mailbox type (shared or regular), the different groups and group members, the secure score, licenses, listed mails in the Qurantaine.

 

Unfortunately, we are not able to establish this connection. Is there someone who is willing to assist us further? Your assistance is much appreciated.

 

Thanks in advance.

Gloria and Lisanne

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous  ,

I can give you some suggestions about Microsoft Graph API:

1.Mailbox Usage Size:

  • You can use the mailbox usage reports available in Microsoft Graph to get information about users with a mailbox and their level of activity. This includes details based on emails sent and received, as well as how much storage each mailbox consumes.

The relevant API endpoint is GET /users/{id|userPrincipalName}/mailboxUsageDetail
2.Mailbox Type (Shared or Regular):

  • Unfortunately, the mailbox type (shared or regular) is not directly exposed through the Microsoft Graph API.
  • However, you can infer the mailbox type by checking whether the mailbox is associated with a Microsoft 365 group (which would indicate a shared mailbox) or a user account (which would be a regular mailbox).

3.Groups and Group Members:

  • Microsoft Graph allows you to work with different types of groups, including Microsoft 365 groups, security groups, mail-enabled security groups, and distribution groups.
  • You can create, manage, and retrieve group information using the groups API.
  • To get group members, use the endpoint.GET /groups/{id}/member

4.Licenses:

  • License information is available through the Microsoft Graph API.
  • You can use the endpoint to retrieve license details for the authenticated user.
  • For other users, you can use.GET /me/licenseDetails

Below is the official link will help you:

Working with groups in Microsoft Graph - Microsoft Graph v1.0 | Microsoft Learn

Use the Microsoft Graph API - Microsoft Graph | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous  ,

I can give you some suggestions about Microsoft Graph API:

1.Mailbox Usage Size:

  • You can use the mailbox usage reports available in Microsoft Graph to get information about users with a mailbox and their level of activity. This includes details based on emails sent and received, as well as how much storage each mailbox consumes.

The relevant API endpoint is GET /users/{id|userPrincipalName}/mailboxUsageDetail
2.Mailbox Type (Shared or Regular):

  • Unfortunately, the mailbox type (shared or regular) is not directly exposed through the Microsoft Graph API.
  • However, you can infer the mailbox type by checking whether the mailbox is associated with a Microsoft 365 group (which would indicate a shared mailbox) or a user account (which would be a regular mailbox).

3.Groups and Group Members:

  • Microsoft Graph allows you to work with different types of groups, including Microsoft 365 groups, security groups, mail-enabled security groups, and distribution groups.
  • You can create, manage, and retrieve group information using the groups API.
  • To get group members, use the endpoint.GET /groups/{id}/member

4.Licenses:

  • License information is available through the Microsoft Graph API.
  • You can use the endpoint to retrieve license details for the authenticated user.
  • For other users, you can use.GET /me/licenseDetails

Below is the official link will help you:

Working with groups in Microsoft Graph - Microsoft Graph v1.0 | Microsoft Learn

Use the Microsoft Graph API - Microsoft Graph | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.