reportRoot: getOffice365ActivationsUserDetailreportRoot: getOffice365ActivationsUserDetail

命名空间:microsoft.graphNamespace: microsoft.graph

获取已激活 Microsoft 365 的用户的详细信息。Get details about users who have activated Microsoft 365.

注意: 若要详细了解不同的报表视图和名称,请参阅 microsoft 365 报表-Microsoft Office 激活Note: For details about different report views and names, see Microsoft 365 reports - Microsoft Office activations.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) Reports.Read.AllReports.Read.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持。Not supported.
应用Application Reports.Read.AllReports.Read.All

注意:若要获得委派权限以允许应用代表用户读取服务使用情况报告,租户管理员必须事先为用户分配适当的 Azure AD 受限管理员角色。Note: For delegated permissions to allow apps to read service usage reports on behalf of a user, the tenant administrator must have assigned the user the appropriate Azure AD limited administrator role. 有关更多详细信息,请参阅授权 API 读取 Microsoft 365 使用情况报告For more details, see Authorization for APIs to read Microsoft 365 usage reports.

HTTP 请求HTTP request

GET /reports/getOffice365ActivationsUserDetail

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization 持有者{令牌}。必需。Bearer {token}. Required.
If-None-MatchIf-None-Match 如果包含此请求头,且提供的 eTag 与文件中的当前标记一致,返回的是 304 Not Modified 响应代码。If this request header is included and the eTag provided matches the current tag on the file, a 304 Not Modified response code is returned. 可选。Optional.

响应Response

如果成功,此方法返回 302 Found 响应,以重定向到报表的预先验证的下载 URL。If successful, this method returns a 302 Found response that redirects to a preauthenticated download URL for the report. 可以在响应的 Location 头中找到此 URL。That URL can be found in the Location header in the response.

预先验证的下载 URL 的有效时间很短(几分钟),不需要 Authorization 头。Preauthenticated download URLs are only valid for a short period of time (a few minutes) and do not require an Authorization header.

CSV 文件包含下面的列标题。The CSV file has the following headers for columns.

  • 报表刷新日期Report Refresh Date
  • 用户主体名称User Principal Name
  • 显示名称Display Name
  • 产品类型Product Type
  • 上次激活日期Last Activated Date
  • WindowsWindows
  • MacMac
  • Windows 10 移动版Windows 10 Mobile
  • iOSiOS
  • AndroidAndroid
  • 在共享计算机上激活Activated On Shared Computer

示例Example

请求Request

下面展示了示例请求。The following is an example of the request.

GET https://graph.microsoft.com/v1.0/reports/getOffice365ActivationsUserDetail

响应Response

下面展示了示例响应。The following 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

执行 302 重定向,下载的 CSV 文件将采用以下架构。Follow the 302 redirection and the CSV file that downloads will have the following schema.

HTTP/1.1 200 OK
Content-Type: application/octet-stream

Report Refresh Date,User Principal Name,Display Name,Product Type,Last Activated Date,Windows,Mac,Windows 10 Mobile,iOS,Android,Activated On Shared Computer