Skip to content

Latest commit

 

History

History
149 lines (115 loc) · 5.12 KB

File metadata and controls

149 lines (115 loc) · 5.12 KB
title List riskyAgents
description Retrieve the properties and relationships of a collection of riskyAgent objects.
author jiayle27
ms.date 10/24/2025
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType

List riskyAgents

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Retrieve the properties and relationships of a collection of riskyAgent objects.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

[!INCLUDE rbac-identity-protection-apis-read]

HTTP request

GET /identityProtection/riskyAgents

Optional query parameters

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

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of riskyAgent objects in the response body. The odata.type property indicates the type of risky agent which might be one of the following types: riskyAgentIdentity, riskyAgentIdentityBlueprintPrincipal, or riskyAgentUser.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/identityProtection/riskyAgents

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

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

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

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.riskyAgentUser",
      "id": "ccdc88ee-d0bb-86b5-3500-1d38195c4d6f",
      "agentDisplayName": "RiskyUserFirstPartyApp2",
      "blueprintId": "b3390471-68c5-466a-9ac2-b93e2a454532",
      "identityType": "agentUser",
      "isDeleted": false,
      "isEnabled": true,
      "isProcessing": true,
      "riskLastModifiedDateTime": "2025-10-10T09:21:00.1031892Z",
      "riskState": "atRisk",
      "riskLevel": "high",
      "riskDetail": "none"
    },
    {
      "@odata.type": "#microsoft.graph.riskyAgentIdentity",
      "id": "ccdc88ee-d0bb-86b5-3500-1d38195c4d6f",
      "agentDisplayName": "AgentIdentityBot",
      "identityType": "agentIdentity",
      "isDeleted": false,
      "isEnabled": true,
      "isProcessing": true,
      "riskLastModifiedDateTime": "2025-10-10T22:40:15.7281572Z",
      "riskState": "atRisk",
      "riskLevel": "high",
      "riskDetail": "none"
    }
  ]
}