SensitivityLabel.Evaluate
Allow the app to determine if there is any sensitivity label to be applied automatically to the content or recommended to the user for manual application, without a signed-in user.
Permission Details
Evaluate sensitivity labels
Allow the app to determine if there is any sensitivity label to be applied automatically to the content or recommended to the user for manual application, without a signed-in user.
57f0b71b-a759-45a0-9a0f-cc099fbd9a44
Evaluate sensitivity labels
Allow the app to determine if there is any sensitivity label to be applied automatically to the content or recommended to the user for manual application, on behalf of the signed-in user.
a4633e44-d355-4474-99df-8c2de6b0e39e
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
Grant Admin Consent
Application permissions always require admin consent.