Application Delegated Admin consent required Data checked
IdentityRiskyServicePrincipal.Read.All
- Resource
- IdentityRiskyServicePrincipal what it applies to
- Access
- Read read only, no changes
- Scope
- All every item in the tenant, not just the signed-in user's
Allows the app to read all identity risky service principal information for your organization, on behalf of the signed-in user.
As an application permission: Allows the app to read all risky service principal information for your organization, without a signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /identityProtection 3 | ||||
| GET | / | AD | — | |
| GET | / | AD | — | |
| GET | / | AD | — | |
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes IdentityRiskyServicePrincipal.Read.All.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgRiskyServicePrincipal | Identity.SignIns | GET /identityProtection/riskyServicePrincipals, GET /identityProtection/riskyServicePrincipals/{id} |
| Get-MgRiskyServicePrincipalHistory | Identity.SignIns | GET /identityProtection/riskyServicePrincipals/{id}/history |
| Get-MgBetaRiskyServicePrincipal | Beta.Identity.SignIns | GET /identityProtection/riskyServicePrincipals, GET /identityProtection/riskyServicePrincipals/{id} |
| Get-MgBetaRiskyServicePrincipalHistory | Beta.Identity.SignIns | GET /identityProtection/riskyServicePrincipals/{id}/history |
Granting IdentityRiskyServicePrincipal.Read.All lets an app read these Microsoft Graph resources in your tenant.
riskyServicePrincipalGraph reference
| Property | Type | Description |
|---|---|---|
| appId | String | The globally unique identifier for the associated application (its appId property), if any. |
| displayName | String | The display name for the service principal. |
| id | String | The unique identifier assigned to the service principal at risk. Inherited from entity. |
| isEnabled | Boolean | true if the service principal account is enabled; otherwise, false. |
| isProcessing | Boolean | Indicates whether Microsoft Entra ID is currently processing the service principal's risky state. |
| riskDetail | riskDetail | Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. |
| riskLastUpdatedDateTime | DateTimeOffset | The date and time that the risk state 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq). |
| riskLevel | riskLevel | Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). |
| riskState | riskState | State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. |
| servicePrincipalType | String | Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal. |
riskyServicePrincipalHistoryItemGraph reference
| Property | Type | Description |
|---|---|---|
| activity | riskServicePrincipalActivity | The activity related to service principal risk level change. |
| initiatedBy | bool | The identifier of the actor of the operation. |
| servicePrincipalId | string | The identifier of the service principal. |