List riskyServicePrincipals

Namespace: microsoft.graph

Retrieve the properties and relationships of riskyServicePrincipal objects.

Note: Using the riskyServicePrincipals API requires an Entra Workload Identity Premium 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.Read.All, IdentityRiskyServicePrincipal.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application IdentityRiskyServicePrincipal.Read.All, 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

GET /identityProtection/riskyServicePrincipals

Optional query parameters

This method supports the $count, $filter, $select, and $top OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.


If successful, this method returns a 200 OK response code and a collection of riskyServicePrincipal objects in the response body.





Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

  "@odata.context": "$metadata#riskyServicePrincipal",
  "value": [
      "id": "9089a539-a539-9089-39a5-899039a58990",
      "isEnabled": true,
      "isProcessing": false,
      "riskLastUpdatedDateTime": "2021-08-14T13:06:51.0451374Z",
      "riskLevel": "high",
      "riskState": "atRisk",
      "riskDetail": "none",
      "displayName": "Contoso App",
      "appId": "b55552fe-a272-4b56-990b-95038d917878",
      "servicePrincipalType": "Application"