Get-FileSensitivityLabelInfo
Extracts and displays the sensitivity label related information attached to an office file stored in SharePoint.
Syntax
Get-FileSensitivityLabelInfo
-FileUrl <String>
[<CommonParameters>]
Description
The Get-FileSensitivityLabelInfo
cmdlet runs on a single office online file. If the file has a sensitivity label attached then it returns the id, displayname, isProtectionEnabled flag and id of the parent label (if applicable). You must be a SharePoint Online administrator or Global Administrator to run the GetFileSensitivityLabelInfo
cmdlet. Note that this cmdlet does not work on files that have labels with custom permission or user defined permission or double key encryption.
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at Intro to SharePoint Online Management Shell.
Examples
EXAMPLE 1
Get-FileSensitivityLabelInfo -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx"
Parameters
-FileUrl
Full URL for the file.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
Related Links
Palaute
https://aka.ms/ContentUserFeedback.
Tulossa pian: Vuoden 2024 aikana poistamme asteittain GitHub Issuesin käytöstä sisällön palautemekanismina ja korvaamme sen uudella palautejärjestelmällä. Lisätietoja on täällä:Lähetä ja näytä palaute kohteelle