GetFileSensitivityLabel
Retrieves sensitivity labels present on drive item.
Input
| Name | Type | Required | Description |
| ItemId | String | True | Id of the drive item to retrieve file sensitivity labels for. |
| UserId | String | False | Unique identifier of the user whose drive will be used to retrieve the file sensitivity label. |
| IncludeLabelMetadata | String | False | Whether extra details of each sensitivity label should be returned. When false, the result set will include only the Id(s) of the item sensitivity label.
The default value is true. |
Result Set Columns
| Name | Type | Description |
| ItemId | String | Id of OneDrive item for which labels were retrieved. |
| Id | String | Id of sensitivity label. |
| Name | String | File sensitivity label name. |
| Description | String | File sensitivity label description. |
| Color | String | Hex code of file sensitivity label in OneDrive interface. |
| Priority | String | Integer representing priority of given label. |
| ToolTip | String | Tool tip provided when label is hovered over in OneDrive interface. |
| IsEnabled | String | Whether the given file sensitivity label is enabled or not. |
| IsEndpointProtectionEnabled | String | Whether Endpoint Protection is enabled for items with this label. |
| HasProtection | String | Whether items with this label have any protection enabled. |
| AutoTooltip | String | Tool tip that is automatically shown alongside this label. |
| ActionSource | String | Source of label addition to this item. |
| ApplicableTo | String | System elements this label can be applied to. |
| Sublabels | String | Array representation of sublabels. |
| CustomSettings | String | Custom settings configured on the sensitivity label. |