Skip to content

Latest commit

 

History

History
111 lines (84 loc) · 4.01 KB

File metadata and controls

111 lines (84 loc) · 4.01 KB
title riskyServicePrincipal: dismiss
description Dismiss the risk of one or more riskyServicePrincipal objects.
author ebasseri
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 10/17/2024

riskyServicePrincipal: dismiss

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Dismiss the risk of one or more riskyServicePrincipal objects. This action sets the targeted service principal account's risk level to none. You can dismiss up to 60 service principal accounts in one request.

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/dismiss

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/dismiss
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

HTTP/1.1 204 No Content