Skip to content

Latest commit

 

History

History
112 lines (85 loc) · 4.14 KB

File metadata and controls

112 lines (85 loc) · 4.14 KB
title riskyServicePrincipal: confirmCompromised
description Confirm one or more riskyServicePrincipal objects as compromised.
author ebasseri
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 10/17/2024

riskyServicePrincipal: confirmCompromised

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Confirm one or more riskyServicePrincipal objects as compromised. This action sets the targeted service principal account's risk level to high.

Note: Using the riskyServicePrincipal API requires a Microsoft Entra Workload ID Premium license.

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

[!INCLUDE rbac-identity-protection-apis-write]

HTTP request

POST /identityProtection/riskyServicePrincipals/confirmCompromised

Request headers

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

Request body

In the request body, specify the collection of ids of the risky service principals in a servicePrincipalIds property.

Response

If successful, this action returns a 204 No Content response code. It doesn't return anything in the response body.

Example

Request

POST https://graph.microsoft.com/beta/identityProtection/riskyServicePrincipals/confirmCompromised
Content-Type: application/json

{
  "servicePrincipalIds": [
    "9089a539-a539-9089-39a5-899039a58990"
  ]
}

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