Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
By using Microsoft Graph, you can access Microsoft 365 usage reports resources to get information about how people in your business are using Microsoft 365 services. For example, you can identify who is using a service a lot and reaching quotas, or who might not need a Microsoft 365 license at all.
For more information about the settings that govern identification/de-identification of information in the Microsoft 365 usage reports data, see Microsoft 365 Reports in the admin center .
Authorization
Microsoft Graph controls access to resources through permissions. You must specify the permissions you need to access Reports resources. Typically, you specify permissions in the Microsoft Entra admin center. For more information, see Microsoft Graph permissions reference and Reports permissions.
Settings
In Microsoft 365 reports, user information such as usernames, groups, and sites is concealed; actual values aren't displayed. You can use the adminReportSettings API to control the display of user information in the reports.
Cloud deployments
The following table shows the availability for each API across all cloud deployments.
Programmatically export unlicensed Copilot Chat usage
Currently, no public Microsoft Graph API or PowerShell cmdlet provides access to Copilot Chat usage data for unlicensed users included in the Copilot Chat usage report.
Unlicensed Copilot Chat interactions are logged only in the Microsoft Purview Unified Audit log.
To automatically extract CopilotInteraction events from the unified audit log, use one of the following methods:
- PowerShell: Use
Search-UnifiedAuditLogon Exchange Online PowerShell (EXO) to filterCopilotInteractionevents and export them to a CSV file. Microsoft Graph PowerShell doesn't exposeSearch-UnifiedAuditLogand can't query the Unified Audit Log. - Office 365 management activity API: Stream audit logs into Security Information and Event Management (SIEM) or analytics platforms using this API.
Next steps
Reports resources and APIs can open up new ways for you to engage with users and manage their experiences by using Microsoft Graph. To learn more:
- Drill down on the methods and properties of the resources most helpful to your scenario.
- Try the API in the Graph Explorer.