Get-PnPFileSensitivityLabelInfo
SYNOPSIS
Retrieves the sensitivity label information for a file in SharePoint.
SYNTAX
Get-PnPFileSensitivityLabelInfo -Url <String>
DESCRIPTION
The Get-PnPFileSensitivityLabelInfo cmdlet retrieves the sensitivity label information for a file in SharePoint. 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-PnPFileSensitivityLabelInfo -Url "https://contoso.sharepoint.com/sites/Marketing/Shared Documents/Report.pdf"
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