Get-PnPFileSensitivityLabel
SYNOPSIS
Required Permissions
- Microsoft Graph API : One of Files.Read.All, Sites.Read.All, Files.ReadWrite.All, Sites.ReadWrite.All
Retrieves the sensitivity label information for a file in SharePoint.
SYNTAX
Get-PnPFileSensitivityLabel -Url <String>
DESCRIPTION
The Get-PnPFileSensitivityLabel cmdlet retrieves the sensitivity label information for a file in SharePoint using Microsoft Graph. It takes a URL as input, decodes it, and specifically encodes the '+' character if it is part of the filename.
EXAMPLES
Example 1
This example retrieves the sensitivity label information for the file at the specified URL.
Get-PnPFileSensitivityLabel -Url "/sites/Marketing/Shared Documents/Report.pptx"
This example retrieves the sensitivity label information for the file at the specified URL.
PARAMETERS
-Url
Specifies the URL of the file for which to retrieve the sensitivity label information.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True
Accept wildcard characters: False