Microsoft Entra Identity Protection.risky User API

The identityProtection.riskyUser API from Microsoft Entra — 9 operation(s) for identityprotection.riskyuser.

GitHub OpenAPI

Operations 15

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/riskyUsers List risky users · List riskyUsers #
Ask an LLM
“Which users are flagged as risky by Identity Protection?”
“Can I filter risky users by risk level?”
Tell an agent
List risky users.
Show risky users matching {filter}.
POST /identityProtection/riskyUsers Add a risky user · Create new navigation property to riskyUsers for identityProtection #
Ask an LLM
“How do I record a user as risky manually?”
“Can I set a risky user's risk level and state?”
Tell an agent
Add risky user {userPrincipalName} with risk level {riskLevel}.
Mark {userPrincipalName} as risky with detail {riskDetail}.
GET /identityProtection/riskyUsers/{riskyUser-id} Get a risky user · Get riskyUser #
Ask an LLM
“What risk level and state is a particular risky user in?”
“Can I read one risky user's history?”
Tell an agent
Get risky user {riskyUser-id}.
Show the risk state of risky user {riskyUser-id}.
PATCH /identityProtection/riskyUsers/{riskyUser-id} Update a risky user · Update the navigation property riskyUsers in identityProtection #
Ask an LLM
“Can I change the risk level of an existing risky user?”
“How do I dismiss a risky user's risk state?”
Tell an agent
Set risky user {riskyUser-id} risk level to {riskLevel}.
Dismiss risky user {riskyUser-id} with risk state {riskState}.
DELETE /identityProtection/riskyUsers/{riskyUser-id} Remove a risky user · Delete navigation property riskyUsers for identityProtection #
Ask an LLM
“How do I remove a risky user from the list?”
“Can I delete a risky user record by its ID?”
Tell an agent destructive · confirm first
Delete risky user {riskyUser-id}.
Remove risky user {riskyUser-id} if ETag {etag} matches.
GET /identityProtection/riskyUsers/{riskyUser-id}/history List a risky user's history · List history of riskyUser #
Ask an LLM
“What actions have been taken on a risky user over time?”
“Can I see the history of risk level changes for one user?”
Tell an agent
List the history of risky user {riskyUser-id}.
Show risk history changes for {riskyUser-id} matching {filter}.
POST /identityProtection/riskyUsers/{riskyUser-id}/history Add a history entry for a risky user · Create new navigation property to history for identityProtection #
Ask an LLM
“How do I log an action taken on a risky user?”
“Can I record who dismissed a risky user's risk?”
Tell an agent
Add history entry {activity} for risky user {riskyUser-id}.
Log {activity} on risky user {riskyUser-id} by {initiatedBy}.
GET /identityProtection/riskyUsers/{riskyUser-id}/history/{riskyUserHistoryItem-id} Get a risky user history entry · Get history from identityProtection #
Ask an LLM
“What did a specific action on a risky user record?”
“Can I read one risky user history item?”
Tell an agent
Get history item {riskyUserHistoryItem-id} for risky user {riskyUser-id}.
Show the action in history {riskyUserHistoryItem-id} of {riskyUser-id}.
PATCH /identityProtection/riskyUsers/{riskyUser-id}/history/{riskyUserHistoryItem-id} Update a risky user history entry · Update the navigation property history in identityProtection #
Ask an LLM
“Can I edit an existing history entry on a risky user?”
“How do I change the actor on a risky user history item?”
Tell an agent
Update history item {riskyUserHistoryItem-id} of risky user {riskyUser-id} to {activity}.
Change the actor on risky user {riskyUser-id} history {riskyUserHistoryItem-id} to {initiatedBy}.
DELETE /identityProtection/riskyUsers/{riskyUser-id}/history/{riskyUserHistoryItem-id} Delete a risky user history item · Delete navigation property history for identityProtection #
Ask an LLM
“How do I remove an item of activity history for a risky user?”
“Can I delete a single risky sign-in record from a user's history?”
Tell an agent destructive · confirm first
Delete history item {history} for risky user {user}.
Remove {history} from the history of risky sign-ins for user {user}.
GET /identityProtection/riskyUsers/{riskyUser-id}/history/$count Count a risky user's history · Get the number of the resource #
Ask an LLM
“How many history entries exist for a risky user?”
“Can I count risky user history matching a filter?”
Tell an agent
Count the history of risky user {riskyUser-id}.
Count risky user {riskyUser-id} history matching {filter}.
GET /identityProtection/riskyUsers/$count Count risky users · Get the number of the resource #
Ask an LLM
“How many risky users are there?”
“Can I count risky users matching a filter?”
Tell an agent
Count risky users.
Count risky users matching {filter}.
POST /identityProtection/riskyUsers/confirmCompromised Confirm risky users as compromised · Invoke action confirmCompromised #
Ask an LLM
“How do I mark a risky user as definitely compromised?”
“Does confirming a user compromised raise their risk level to high?”
Tell an agent
Confirm risky users {userIds} as compromised.
Mark {userIds} as definitely compromised.
POST /identityProtection/riskyUsers/confirmSafe Confirm risky users as safe · Invoke action confirmSafe #
Ask an LLM
“How do I mark a risky user as confirmed safe?”
“Does confirming a user safe set their risk level to none?”
Tell an agent
Confirm risky users {userIds} as safe.
Mark {userIds} as confirmed safe.
POST /identityProtection/riskyUsers/dismiss Dismiss risky users' risk · Invoke action dismiss #
Ask an LLM
“How do I dismiss the risk on a risky user?”
“Can I dismiss risk for several users at once?”
Tell an agent
Dismiss the risk on risky users {userIds}.
Mark {userIds} as safe by dismissing their risk.

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-riskyuser-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-riskyuser-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 (165 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-entra/openapi/microsoft-entra-identityprotection-riskyuser-api-openapi.yml