Sensitivity labels (IRPCSensitivityLabels)

View as Markdown

Reads the Microsoft Purview sensitivity labels of files.

gRPC serviceMFiles.IRPCSensitivityLabels
Book and levelVault API, standard
Methods1
Proto filemfiles/IRPCSensitivityLabels.proto

Overview

Reads the Microsoft Purview sensitivity labels of a file, for showing them next to the file in a user interface. The labels come from the Microsoft SharePoint Embedded storage where the vault keeps the file; vaults that do not store files there have no labels.

The call is advisory: it never fails because labels are unavailable. Whenever the server cannot produce labels, it returns an empty label_info. Do not use it as a security check.

Methods

MethodSummaryFacts
GetSensitivityLabelsGets the sensitivity labels of one file, or an empty list when no labels are available.read session idempotent