Get Office365Activations report

Retrieve the reports of Office 365 Activations. The response will be a CSV file in a binary stream.

Note: You can go to Office 365 Reports - Microsoft Office activations to check the meaning of different views.

Prerequisites

The following scopes are required to execute this API:

  • Reports.Read.All

Note: Permission scopes are listed in least privilege required order.

HTTP request

GET /reports/Office365Activations(view=view-value)/content

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

In the request URL, provide following query parameters with values.

Parameter Type Description
view ViewType View is an enumeration type, used to determine which type of information that current report should return. Can not be null.

The following ViewType are available in this report:

  • Detail
  • Activations
  • Users

Response

If successful, this method returns 302 Found response redirecting to a pre-authenticated download URL for the report.

To download the contents of the file your application will need to follow the Location header in the response. Many HTTP client libraries will automatically follow the 302 redirection and start downloading the file immedately.

Pre-authenticated download URLs are only valid for a short period of time (a few minutes) and do not require an Authorization header to download.

Example

Here is an example of how to call this API.

Request

Here is an example of the request.

GET https://graph.microsoft.com/beta/reports/Office365Activations(view='Detail')/content

Response

Here is an example of the response.

HTTP/1.1 302 Found
Content-Type: text/plain
Location: https://reports.office.com/data/download/JDFKdf2_eJXKS034dbc7e0t__XDe

Follow the 302 redirection and the downloading CSV file will have the schema as belowing.

HTTP/1.1 200 OK
Data as of,User principal name,User display name,Product license,Last activity date (UTC),Windows OS,Mac OS,Windows 10 Mobile,iOS,Android

Other valid requests

GET https://graph.microsoft.com/beta/reports/Office365Activations(view='Activations')/content
GET https://graph.microsoft.com/beta/reports/Office365Activations(view='Users')/content