Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 2.33 KB

File metadata and controls

75 lines (50 loc) · 2.33 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/Get-FileSensitivityLabelInfo
applicable SharePoint Online
title Get-FileSensitivityLabelInfo
schema 2.0.0
author SanjoyanM
ms.author samust
ms.reviewer

Get-FileSensitivityLabelInfo

SYNOPSIS

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 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

Applicable: SharePoint Online

Full URL for the file.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOAppErrors