Skip to content

Latest commit

 

History

History
130 lines (106 loc) · 4.74 KB

File metadata and controls

130 lines (106 loc) · 4.74 KB
title recommendation: tenantSecureScores
description Get historical Secure Score data for your Microsoft Entra tenant.
author sacsai
ms.localizationpriority medium
ms.subservice entra-monitoring-health
doc_type apiPageType
ms.date 07/08/2024

recommendation: tenantSecureScores

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Get the historical Secure Score data for your Microsoft Entra tenant. This API returns the latest score and doesn't include the details for each control. To view detailed information, see the secureScore resource type and its associated methods.

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]

[!INCLUDE rbac-directory-recommendations-apis-read]

HTTP request

GET /directory/recommendations/tenantSecureScores

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and a tenantSecureScore collection in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/directory/recommendations/tenantSecureScores

[!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.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.tenantSecureScore)",
    "value": [
        {
            "tenantScore": 11,
            "tenantMaxScore": 56,
            "createDateTime": "2023-11-01T00:00:00Z"
        },
        {
            "tenantScore": 11,
            "tenantMaxScore": 56,
            "createDateTime": "2023-10-31T00:00:00Z"
        },
        {
            "tenantScore": 11,
            "tenantMaxScore": 56,
            "createDateTime": "2023-10-30T00:00:00Z"
        },
        {
            "tenantScore": 11,
            "tenantMaxScore": 56,
            "createDateTime": "2023-10-29T00:00:00Z"
        }
    ]
}