Skip to content

Latest commit

 

History

History
119 lines (86 loc) · 4.54 KB

adminreportsettings-update.md

File metadata and controls

119 lines (86 loc) · 4.54 KB
title description ms.localizationpriority author ms.subservice doc_type ms.date
Update adminReportSettings
Update tenant-level settings for Microsoft 365 reports.
medium
ganggao
reports
apiPageType
09/10/2024

Update adminReportSettings

Namespace: microsoft.graph

Update tenant-level settings for Microsoft 365 reports.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

Note: For delegated permissions to allow apps to update report settings on behalf of a user, the tenant administrator must have assigned the user the appropriate Microsoft Entra ID limited administrator role. For more information, see Authorization for APIs to read Microsoft 365 usage reports.

HTTP request

PATCH /admin/reportSettings

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

[!INCLUDE table-intro]

Property Type Description
displayConcealedNames Boolean If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required.

Response

If successful, this method returns a 204 No Content response code.

Examples

The following example shows a request that updates a tenant-level setting for Microsoft 365 reports.

Request

The following example shows a request.

PATCH https://graph.microsoft.com/v1.0/admin/reportSettings
Content-Type: application/json
Content-length: 37

{
  "displayConcealedNames": true
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content