| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Retrieve the properties and relationships of a collection of riskyAgent objects.
[!INCLUDE national-cloud-support]
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]
GET /identityProtection/riskyAgentsThis method supports the $select, $count, and $filter OData query parameters to help customize the response. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
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.
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]
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"
}
]
}