riskyServicePrincipal: dismiss

Namespace: microsoft.graph


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 an Azure AD Premium P2 license.


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

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.


If successful, this action returns a 204 No Content response code. It does not return anything in the response body.



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

  "servicePrincipalIds": [


HTTP/1.1 204 No Content