riskyServicePrincipal: dismiss

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

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.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

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.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) IdentityRiskyServicePrincipal.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application IdentityRiskyServicePrincipal.ReadWrite.All Not available.

For delegated scenarios, the signed-in user must be assigned at least the Security Administrator Microsoft Entra role.

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"
  ]
}

Response

HTTP/1.1 204 No Content