Skip to content

Commit 0dad3ae

Browse files
authored
Merge pull request MicrosoftDocs#7762 from SanjoyanM/patch-8
Create Get-FileSensitivityLabelInfo
2 parents 0bb155c + 960771d commit 0dad3ae

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
external help file: sharepointonline.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://docs.microsoft.com/powershell/module/sharepoint-online/Get-FileSensitivityLabelInfo
5+
applicable: SharePoint Online
6+
title: GetFileSensitivityLabelInfo
7+
schema: 2.0.0
8+
author: Sanjoyanm
9+
ms.author: samust
10+
ms.reviewer:
11+
---
12+
13+
# Get-FileSensitivityLabelInfo
14+
15+
## SYNOPSIS
16+
17+
Extracts and displays the sensitivity label related information attached to an office file stored in SharePoint.
18+
19+
## SYNTAX
20+
21+
```powershell
22+
Get-FileSensitivityLabelInfo -FileUrl <String> [<CommonParameters>]
23+
```
24+
25+
## DESCRIPTION
26+
27+
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.
28+
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell).
29+
30+
## EXAMPLES
31+
32+
### EXAMPLE 1
33+
34+
```powershell
35+
Get-FileSensitivityLabelInfo -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx"
36+
```
37+
38+
## PARAMETERS
39+
40+
### -FileUrl
41+
42+
Full URL for the file.
43+
44+
```yaml
45+
Type: String
46+
Parameter Sets: (All)
47+
Aliases:
48+
Applicable: SharePoint Online
49+
50+
Required: True
51+
Position: Named
52+
Default value: None
53+
```
54+
55+
## INPUTS
56+
57+
## OUTPUTS
58+
59+
## NOTES
60+
61+
## RELATED LINKS
62+
63+
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
64+
65+
[Get-SPOAppErrors](Get-SPOAppErrors.md)

0 commit comments

Comments
 (0)