Microsoft Entra Identity Protection.risky Service Principal API

The identityProtection.riskyServicePrincipal API from Microsoft Entra — 8 operation(s) for identityprotection.riskyserviceprincipal.

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /identityProtection/riskyServicePrincipals List risky service principals · List riskyServicePrincipals #
Ask an LLM
“Which service principals are flagged as risky?”
“Can I filter risky service principals by risk level?”
Tell an agent
List risky service principals.
Show risky service principals matching {filter}.
POST /identityProtection/riskyServicePrincipals Flag a service principal as risky · Create new navigation property to riskyServicePrincipals for identityProtection #
Ask an LLM
“How do I mark a service principal as risky?”
“Can I set the risk level when creating a risky service principal?”
Tell an agent
Create a risky service principal named {displayName} with app {appId}.
Flag service principal {displayName} as risky at level {riskLevel}.
GET /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id} Get a risky service principal · Get riskyServicePrincipal #
Ask an LLM
“What risk level and state does a specific service principal have?”
“Can I see the risk history of one risky service principal?”
Tell an agent
Get risky service principal {riskyServicePrincipal}.
Show the risk state of service principal {riskyServicePrincipal}.
PATCH /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id} Update a risky service principal · Update the navigation property riskyServicePrincipals in identityProtection #
Ask an LLM
“Can I change the risk level of a flagged service principal?”
“How do I set the risk state of a service principal?”
Tell an agent
Set the risk level of {riskyServicePrincipal} to {riskLevel}.
Mark service principal {riskyServicePrincipal} as confirmed safe.
DELETE /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id} Dismiss a risky service principal · Delete navigation property riskyServicePrincipals for identityProtection #
Ask an LLM
“How do I dismiss a risky service principal?”
“Can I remove a risky service principal from the list?”
Tell an agent destructive · confirm first
Dismiss risky service principal {riskyServicePrincipal}.
Remove the risky flag from service principal {riskyServicePrincipal}.
GET /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history List risk history of a service principal · List history (risk history of riskyServicePrincipal) #
Ask an LLM
“What risk events have happened to a service principal over time?”
“Can I see the risk history of one flagged service principal?”
Tell an agent
List the risk history of {riskyServicePrincipal}.
Show risk events for service principal {riskyServicePrincipal}.
POST /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history Record a risk event for a service principal · Create new navigation property to history for identityProtection #
Ask an LLM
“How do I log a risk event against a service principal?”
“Can I record who changed a service principal's risk state?”
Tell an agent
Record a risk event {activity} for {riskyServicePrincipal} by {initiatedBy}.
Log a risk history entry on service principal {riskyServicePrincipal}.
GET /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history/{riskyServicePrincipalHistoryItem-id} Get a risk history event · Get history from identityProtection #
Ask an LLM
“What details are in one risk history event?”
“Can I read a single risk event for a service principal?”
Tell an agent
Get risk history event {historyItem} of {riskyServicePrincipal}.
Show the risk event {historyItem} for service principal {riskyServicePrincipal}.
PATCH /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history/{riskyServicePrincipalHistoryItem-id} Update a risk history event · Update the navigation property history in identityProtection #
Ask an LLM
“Can I edit a risk history event?”
“How do I change the actor on a risk event?”
Tell an agent
Update risk history event {historyItem} of {riskyServicePrincipal} to actor {initiatedBy}.
Change the risk event {historyItem} on service principal {riskyServicePrincipal}.
DELETE /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history/{riskyServicePrincipalHistoryItem-id} Delete a risk history event · Delete navigation property history for identityProtection #
Ask an LLM
“How do I remove a risk history event?”
“Can I delete one risk event from a service principal?”
Tell an agent destructive · confirm first
Delete risk history event {historyItem} from {riskyServicePrincipal}.
Remove risk event {historyItem} for service principal {riskyServicePrincipal}.
GET /identityProtection/riskyServicePrincipals/{riskyServicePrincipal-id}/history/$count Count risk history events for a service principal · Get the number of the resource #
Ask an LLM
“How many risk history events exist for one service principal?”
“Can I count risk events for a flagged service principal?”
Tell an agent
Count the risk history events for {riskyServicePrincipal}.
Tell me how many risk events service principal {riskyServicePrincipal} has.
GET /identityProtection/riskyServicePrincipals/$count Count risky service principals · Get the number of the resource #
Ask an LLM
“How many service principals are flagged as risky?”
“Can I get the total number of risky service principals?”
Tell an agent
Count all risky service principals.
Tell me how many service principals are risky.
POST /identityProtection/riskyServicePrincipals/confirmCompromised Confirm risky service principals as compromised · Invoke action confirmCompromised #
Ask an LLM
“How do I raise the risk level of a service principal to high?”
“Can I mark several risky service principals as compromised at once?”
Tell an agent
Confirm the risky service principals with ids {servicePrincipalIds} as compromised.
Set the risk level of risky service principals {servicePrincipalIds} to high.
POST /identityProtection/riskyServicePrincipals/dismiss Dismiss risk on service principals · Invoke action dismiss #
Ask an LLM
“How do I dismiss the risk on flagged service principals?”
“Can I clear risk from up to 60 service principals in one request?”
Tell an agent
Dismiss the risk on service principals {servicePrincipalIds}.
Clear risk from {servicePrincipalIds} and set their risk level to none.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-entra:microsoft-entra-identityprotection-riskyserviceprincipal-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-entra-identityprotection-riskyserviceprincipal-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Identity…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (167 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-entra/openapi/microsoft-entra-identityprotection-riskyserviceprincipal-api-openapi.yml