How to get sensitivity label using Double Key Encryption (DKE) by REST API of SharePoint or Graph
For any a file opening URL in SharePoint, I use the two following APIs, but failed to get sensitivity label using Double Key Encryption (DKE)
1. https://nextlabstest2.sharepoint.com/_api/SP.RemoteWeb(@a1)/web/GetFileByUrl(@a1)/ListItemAllFields/GetSharingInformation?$select=sensitivityLabelInformation&@a1=any_form_file_opening_url
{
“sensitivityLabelInformation”: null
}
2.
https://graph.microsoft.com/v1.0/shares/${encodedSharingUrl}/driveItem/sensitivityLabel
{
“@odata.context”: “https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.driveItemSensitivityLabel”,
“displayName”: “Confidential \ RESTRICTED TO US PERSONS”,
“error”: null,
“id”: “04540264-2228-43ae-a3de-17927756f276”,
“protectionEnabled”: false
}
For any a file opening URL in SharePoint, I use the two following APIs, but failed to get sensitivity label using Double Key Encryption (DKE)
1. https://nextlabstest2.sharepoint.com/_api/SP.RemoteWeb(@a1)/web/GetFileByUrl(@a1)/ListItemAllFields/GetSharingInformation?$select=sensitivityLabelInformation&@a1=any_form_file_opening_url
{
“sensitivityLabelInformation”: null
}
2.
https://graph.microsoft.com/v1.0/shares/${encodedSharingUrl}/driveItem/sensitivityLabel
{
“@odata.context”: “https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.driveItemSensitivityLabel”,
“displayName”: “Confidential \ RESTRICTED TO US PERSONS”,
“error”: null,
“id”: “04540264-2228-43ae-a3de-17927756f276”,
“protectionEnabled”: false
} Read More