riskyServicePrincipal: dismiss

Namespace: microsoft.graph

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 an Entra Workload Identity Premium license.

Permissions

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) IdentityRiskyServicePrincipal.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application IdentityRiskyServicePrincipal.ReadWrite.All

For delegated scenarios, the signed-in user must have one of the following Azure AD roles.

  • Security Administrator
  • Global Administrator

HTTP request

POST /identityProtection/riskyServicePrincipals/dismiss

Request headers

Name Description
Authorization Bearer {token}. Required.

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 does not return anything in the response body.

Example

Request

POST https://graph.microsoft.com/v1.0/identityProtection/riskyServicePrincipals/dismiss
Content-Type: application/json

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

Response

HTTP/1.1 204 No Content