Configure permission classifications
In this article, you learn how to configure permissions classifications in Microsoft Entra ID. Permission classifications allow you to identify the impact that different permissions have based on your organization's policies and risk evaluations. For example, you can use permission classifications in consent policies to identify the set of permissions that users are allowed to consent to.
Three permission classifications are supported: "Low," "Medium" (preview), and "High" (preview). Currently, only delegated permissions that don't require admin consent can be classified.
The minimum permissions needed to do basic sign-in are openid
, profile
, email
, and offline_access
, which are all delegated permissions on the Microsoft Graph. With these permissions an app can read details of the signed-in user's profile, and can maintain this access even when the user is no longer using the app.
Prerequisites
To configure permission classifications, you need:
- An Azure account with an active subscription. Create an account.
- One of the following roles: Application Administrator, or Cloud Application Administrator
Manage permission classifications
Tip
Steps in this article might vary slightly based on the portal you start from.
Follow these steps to classify permissions using the Microsoft Entra admin center:
- Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator.
- Browse to Identity > Applications > Enterprise applications > Consent and permissions > Permission classifications.
- Choose the tab for the permission classification you'd like to update.
- Choose Add permissions to classify another permission.
- Select the API and then select one or more delegated permissions.
In this example, we classify the minimum set of permission required for single sign-on:
You can use the latest Azure AD PowerShell, to classify permissions. Permission classifications are configured on the ServicePrincipal object of the API that publishes the permissions.
Run the following command to connect to Azure AD PowerShell. To consent to the required scopes, sign in as at least a Cloud Application Administrator.
Connect-AzureAD -AzureEnvironmentName AzureChinaCloud -Scopes
List the current permission classifications using Azure AD PowerShell
Retrieve the ServicePrincipal object for the API. Here we retrieve the ServicePrincipal object for the Microsoft Graph API:
$api = Get-AzureADServicePrincipal ` -Filter "servicePrincipalNames/any(n:n eq 'https://microsoftgraph.chinacloudapi.cn')"
Read the delegated permission classifications for the API:
Get-AzureADMSServicePrincipalDelegatedPermissionClassification ` -ServicePrincipalId $api.ObjectId | Format-Table Id, PermissionName, Classification
Classify a permission as "Low impact" using Azure AD PowerShell
Retrieve the ServicePrincipal object for the API. Here we retrieve the ServicePrincipal object for the Microsoft Graph API:
$api = Get-AzureADServicePrincipal ` -Filter "servicePrincipalNames/any(n:n eq 'https://microsoftgraph.chinacloudapi.cn')"
Find the delegated permission you would like to classify:
$delegatedPermission = $api.OAuth2Permissions | Where-Object { $_.Value -eq "User.ReadBasic.All" }
Set the permission classification using the permission name and ID:
Add-AzureADMSServicePrincipalDelegatedPermissionClassification ` -ServicePrincipalId $api.ObjectId ` -PermissionId $delegatedPermission.Id ` -PermissionName $delegatedPermission.Value ` -Classification "low"
Remove a delegated permission classification using Azure AD PowerShell
Retrieve the ServicePrincipal object for the API. Here we retrieve the ServicePrincipal object for the Microsoft Graph API:
$api = Get-AzureADServicePrincipal ` -Filter "servicePrincipalNames/any(n:n eq 'https://microsoftgraph.chinacloudapi.cn')"
Find the delegated permission classification you wish to remove:
$classifications = Get-AzureADMSServicePrincipalDelegatedPermissionClassification ` -ServicePrincipalId $api.ObjectId $classificationToRemove = $classifications | Where-Object {$_.PermissionName -eq "User.ReadBasic.All"}
Delete the permission classification:
Remove-AzureADMSServicePrincipalDelegatedPermissionClassification ` -ServicePrincipalId $api.ObjectId ` -Id $classificationToRemove.Id
You can use Microsoft Graph PowerShell, to classify permissions. Permission classifications are configured on the ServicePrincipal object of the API that publishes the permissions.
Run the following command to connect to Microsoft Graph PowerShell. To consent to the required scopes, sign in as at least a Cloud Application Administrator.
Connect-MgGraph -Environment China -ClientId 'YOUR_CLIENT_ID' -TenantId 'YOUR_TENANT_ID' -Scopes "Policy.ReadWrite.PermissionGrant".
List current permission classifications for an API using Microsoft Graph PowerShell
Retrieve the servicePrincipal object for the API:
$api = Get-MgServicePrincipal -Filter "displayName eq 'Microsoft Graph'"
Read the delegated permission classifications for the API:
Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $api.Id
Classify a permission as "Low impact" using Microsoft Graph PowerShell
Retrieve the servicePrincipal object for the API:
$api = Get-MgServicePrincipal -Filter "displayName eq 'Microsoft Graph'"
Find the delegated permission you would like to classify:
$delegatedPermission = $api.Oauth2PermissionScopes | Where-Object {$_.Value -eq "openid"}
Set the permission classification:
$params = @{ PermissionId = $delegatedPermission.Id PermissionName = $delegatedPermission.Value Classification = "Low" } New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $api.Id -BodyParameter $params
Remove a delegated permission classification using Microsoft Graph PowerShell
Retrieve the servicePrincipal object for the API:
$api = Get-MgServicePrincipal -Filter "displayName eq 'Microsoft Graph'"
Find the delegated permission classification you wish to remove:
$classifications = Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $api.Id $classificationToRemove = $classifications | Where-Object {$_.PermissionName -eq "openid"}
Delete the permission classification:
Remove-MgServicePrincipalDelegatedPermissionClassification -DelegatedPermissionClassificationId $classificationToRemove.Id -ServicePrincipalId $api.id