Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    2 years ago

    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.

1 Reply

  • Anonymous's avatar
    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.