ESC
Type to search...

IdentityRiskyUser.Read.All

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read All Resources

Allows the app to read the identity risky user information for your organization without a signed in user.

Permission data: April 6, 2026 at 4:06 AM UTC
Delegated Access App-Only Access

Permission Details

Application Permission

Read all identity risky user information

Allows the app to read the identity risky user information for your organization without a signed in user.

Delegated Permission Admin consent required

Read identity risky user information

Allows the app to read identity risky user information for all users in your organization on behalf of the signed-in user.

Properties

Microsoft Graph v1.0 endpoint-derived-docs

Properties is shown from stable Microsoft Graph v1.0 metadata.

Property Type Description
id String Unique ID of the user at risk.
isDeleted BooleanNullable Indicates whether the user is deleted. The possible values are: true, false.
isProcessing BooleanNullable Indicates whether the backend is processing a user's risky state.
riskLastUpdatedDateTime DateTimeOffsetNullable The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
riskLevel riskLevel Level of the detected risky user. The possible values are: low, medium, high, hidden, none, unknownFutureValue.
riskState riskState State of the user's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
riskDetail riskDetail Details of the detected risk.
userDisplayName StringNullable Risky user display name.
userPrincipalName StringNullable Risky user principal name.
history riskyUserHistoryItem collection The activity related to user risk level change

JSON Representation

Microsoft Graph v1.0 endpoint-derived-docs

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "@odata.type": "#microsoft.graph.riskyUser",
  "id": "String (identifier)",
  "isDeleted": "Boolean",
  "isProcessing": "Boolean",
  "riskLastUpdatedDateTime": "String (timestamp)",
  "riskLevel": "String",
  "riskState": "String",
  "riskDetail": "String",
  "userDisplayName": "String",
  "userPrincipalName": "String"
}

Relationships

Microsoft Graph v1.0 endpoint-derived-docs

Relationships is shown from stable Microsoft Graph v1.0 metadata.

Relationship Type Description
history riskyUserHistoryItem collection The activity related to user risk level change

Graph Methods

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /identityProtection/riskyUsers
GET /identityProtection/riskyUsers/{riskyUserId}
GET /identityProtection/riskyUsers/{riskyUserId}/history
Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /identityProtection/riskyUsers
GET /identityProtection/riskyUsers/{id}
GET /identityProtection/riskyUsers/{id}/history/
GET /identityProtection/riskyUsers/{userid}/history/{id}
GET /riskyUsers
GET /riskyUsers/{id}
GET /riskyUsers/{id}/history
GET /riskyUsers/{userid}/history/{id}
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgRiskyUser /identityProtection/riskyUsers
List riskyUsers
Get-MgRiskyUser /identityProtection/riskyUsers/{riskyUserId}
Get riskyUser
Get-MgRiskyUserHistory /identityProtection/riskyUsers/{riskyUserId}/history
List history of riskyUser
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgBetaRiskyUser /riskyUsers
List riskyUsers
Get-MgBetaRiskyUser /riskyUsers/{id}
Get riskyUser
Get-MgBetaRiskyUserHistory /riskyUsers/{id}/history
List history of riskyUser
Get-MgBetaRiskyUserHistory /riskyUsers/{userid}/history/{id}
Get history item of riskyUser

Code Examples

C# / .NET SDK
Get riskyUser
// Code snippets are only available for the latest version. Current version is 5.x

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.IdentityProtection.RiskyUsers["{riskyUser-id}"].GetAsync();
JavaScript
Get riskyUser
const options = {
	authProvider,
};

const client = Client.init(options);

let riskyUser = await client.api('/identityProtection/riskyUsers/c2b6c2b9-dddc-acd0-2b39-d519d803dbc3')
	.get();
PowerShell
Get riskyUser
Import-Module Microsoft.Graph.Identity.SignIns

Get-MgRiskyUser -RiskyUserId $riskyUserId
Python
Get riskyUser
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python

result = await graph_client.identity_protection.risky_users.by_risky_user_id('riskyUser-id').get()

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions or delegated permissions and search for IdentityRiskyUser.Read.All

4

Grant Admin Consent

Application permissions always require admin consent.