SensitivityLabel.Evaluate.All
Allows the app to evaluate all sensitivity label.
In short
SensitivityLabel.Evaluate.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the SensitivityLabel category. Allows the app to evaluate all sensitivity label. It grants read-only access to resources. Application permissions always require admin consent.
Permission Details
Evaluate labels tenant scope.
Allows the app to evaluate all sensitivity label.
986fa56a-6680-4aac-af09-4d1765376739
Evaluate labels tenant scope.
Allows the app to evaluate all sensitivity label.
a42e3c42-b31e-4919-b699-696dca5dc9e7
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
actionSource |
object |
|
autoTooltip |
stringNullable |
|
description |
stringNullable |
|
displayName |
stringNullable |
|
hasProtection |
booleanNullable |
|
id |
string |
The unique identifier for an entity. Read-only. |
isDefault |
booleanNullable |
|
isEndpointProtectionEnabled |
booleanNullable |
|
isScopedToUser |
booleanNullable |
|
locale |
stringNullable |
|
name |
stringNullable |
|
priority |
int32Nullable |
|
rights |
object |
|
sublabels |
sensitivityLabel collection |
|
toolTip |
stringNullable |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"actionSource": {
"sample": "value"
},
"autoTooltip": "String",
"description": "String",
"displayName": "String",
"hasProtection": true,
"id": "String",
"isDefault": true,
"isEndpointProtectionEnabled": true,
"isScopedToUser": true,
"locale": "String",
"name": "String",
"priority": 0,
"rights": {
"sample": "value"
},
"sublabels": [
{
"@type": "sensitivityLabel",
"id": "00000000-0000-0000-0000-000000000000"
}
],
"toolTip": "String"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
sublabels |
sensitivityLabel collection |
Related sublabels data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/security/dataSecurityAndGovernance/sensitivityLabels/computeInheritance
|
POST
/security/dataSecurityAndGovernance/sensitivityLabels/computeRightsAndInheritance
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/security/dataSecurityAndGovernance/sensitivityLabels/computeInheritance
|
POST
/security/dataSecurityAndGovernance/sensitivityLabels/computeRightsAndInheritance
|
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
| Commands |
|---|
Invoke-MgAndSecurityDataSecurityAndGovernanceSensitivityLabel
/security/dataSecurityAndGovernance/sensitivityLabels/computeRightsAndInheritance
sensitivityLabel: computeRightsAndInheritance
|
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Security.DataSecurityAndGovernance.SensitivityLabels.ComputeRightsAndInheritance;
using Microsoft.Graph.Models;
var requestBody = new ComputeRightsAndInheritancePostRequestBody
{
DelegatedUserEmail = "String",
Locale = "String",
ProtectedContents = new List<ProtectedContent>
{
new ProtectedContent
{
OdataType = "microsoft.graph.protectedContent",
},
},
SupportedContentFormats = new List<string>
{
"String",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.DataSecurityAndGovernance.SensitivityLabels.ComputeRightsAndInheritance.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
let sensitivityLabel = await client.api('/security/dataSecurityAndGovernance/sensitivityLabels/computeInheritance(labelIds=["4e4234dd-377b-42a3-935b-0e42f138fa23"],locale='en-US',contentFormats=["File"])')
.header('Authorization','Bearer {token}')
.header('Client-Request-Id','c5e4d3b2-a1f0-e9d8-c7b6-a5e4d3b2a1f0')
.get();
Import-Module Microsoft.Graph.Security
$params = @{
delegatedUserEmail = "String"
locale = "String"
protectedContents = @(
@{
"@odata.type" = "microsoft.graph.protectedContent"
}
)
supportedContentFormats = @(
"String"
)
}
Invoke-MgAndSecurityDataSecurityAndGovernanceSensitivityLabel -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.security.datasecurityandgovernance.sensitivitylabels.compute_rights_and_inheritance.compute_rights_and_inheritance_post_request_body import ComputeRightsAndInheritancePostRequestBody
from msgraph.generated.models.protected_content import ProtectedContent
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ComputeRightsAndInheritancePostRequestBody(
delegated_user_email = "String",
locale = "String",
protected_contents = [
ProtectedContent(
odata_type = "microsoft.graph.protectedContent",
),
],
supported_content_formats = [
"String",
],
)
result = await graph_client.security.data_security_and_governance.sensitivity_labels.compute_rights_and_inheritance.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for SensitivityLabel.Evaluate.All
Grant Admin Consent
Application permissions always require admin consent.
Frequently asked questions
What is the SensitivityLabel.Evaluate.All Microsoft Graph permission?
SensitivityLabel.Evaluate.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the SensitivityLabel category. Allows the app to evaluate all sensitivity label. It grants read-only access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph sensitivityLabel resource type. 4 documented Microsoft Graph REST methods require it. 2 Microsoft Graph PowerShell commands are documented for it.
Is SensitivityLabel.Evaluate.All an application or a delegated permission?
SensitivityLabel.Evaluate.All is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).
Does SensitivityLabel.Evaluate.All require admin consent?
Application permissions always require admin consent.
What is the permission ID (GUID) for SensitivityLabel.Evaluate.All?
For SensitivityLabel.Evaluate.All, the application (app role) ID is 986fa56a-6680-4aac-af09-4d1765376739, and the delegated (OAuth2 scope) ID is a42e3c42-b31e-4919-b699-696dca5dc9e7. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.