List all groups that the group is a member of using Microsoft graph
Operation: getMemberGroups
Description: This request returns all the groups in which a user is a member of. It returns only the groups that the user is a direct member of. This function supports Microsoft 365 and other types of groups in Azure AD. This request can result a maximum of 2046 results.
Request:
- POST /users/{id | userPrincipalName}/getMemberGroups
Operation: getMemberObjects
Description: This request fetches all the groups, directory roles and administrative units that the user is a member of.
- POST /users/{id | userPrincipalName}/getMemberObjects
Why graph API is not a good option
- Incomprehensible results: The response returned by the graph explorer will be in JSON format which is difficult to comprehend by the end user.
- Difficulty in handling bulk results: When the result spans multiple pages, the graph explorer returns links to those pages instead of displaying all the records.
- Non-user friendly: User needs a third-party tool to view the response of the graph explorer in graphical or tabular format.
- Need of expertise: In-depth coding knowledge is required to customize the requests for specific needs.
Get Microsoft 365 group reports using M365 Manager Plus
Why juggle multiple scripts to know about a single group? M365 Manager Plus provides more than 700 pre-defined reports on Exchange Online, Azure AD, MS Teams, Yammer, and other Microsoft 365 services which are way easier to generate and customize than the results returned by the graph explorer.
It has a dedicated set of reports to know all about the groups in your organization. And the best part is, you need not write even a single line of code. All the required details are presented to you in a detailed tabular format accompanied with a graphical view of the report.
Refer the image below to know about the group reports provided by M365 Manager Plus.
![Microsoft 365 group reports Microsoft 365 group reports](https://www.manageengine.com/za/microsoft-365-management-reporting/graph-api/images/microsoft-365-group-reports.png)
Highlights of M365 Manager Plus:
- Advanced filters: Use attribute and condition-based filters to get the data you need without lengthy PowerShell scripts.
- Reports on historical data: API requests can only retrieve data that's at least seven days old and no older than 180 days. But, M365 Manager Plus reports can fetch all data right from its installation.
- Customizable dashboard: M365 Manager Plus dashboard is customizable. Generate graphical reports to get a quick peek at the mail traffic summary, top email senders and receivers, client device usage, and more. This dashboard can be embedded in any of your web pages to enable constant monitoring.
- Report scheduler: Schedule report generation at regular intervals to reduce the overhead.
- Report export: The reports can be exported to PDF, XLSX, HTML, or CSV formats and redistributed via emails to the administrators.
- Secure delegation: Securely delegate report generation to technicians and IT staff without giving them full access to the Microsoft 365 Admin Center.
![Microsoft 365 group members report Microsoft 365 group members report](https://www.manageengine.com/za/microsoft-365-management-reporting/graph-api/images/microsoft-365-group-members-report.png)