You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
32
32
- Added `-HidePeoplePreviewingFiles` to `Set-PnPSite` which allows for hiding the people previewing files feature on a site [#4416](https://github.com/pnp/powershell/pull/4416)
33
33
- Added `-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled` to `Set-PnPTenant` which allows for updating of web property bag when DenyAddAndCustomizePages is enabled [#4508](https://github.com/pnp/powershell/pull/4508)
34
34
- Added `SiteId` to the output of `Get-PnPTenantSite`[#4527](https://github.com/pnp/powershell/pull/4527)
35
+
- Added `Add-PnPFileSensitivityLabel` which allows for assigning sensitivity labels to SharePoint files [#4538](https://github.com/pnp/powershell/pull/4538)
The Add-PnPFileSensitivityLabel cmdlet adds 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. It also takes the sensitivity label Id , assignment method and justification text values as input.
28
+
29
+
## EXAMPLES
30
+
31
+
### Example 1
32
+
This example adds the sensitivity label information for the file at the specified URL.
The server relative path to the file, the unique identifier of the file, the listitem representing the file, or the file object itself on which we are adding the sensitivity label.
49
+
50
+
```yaml
51
+
Type: FilePipeBind
52
+
Parameter Sets: (All)
53
+
54
+
Required: True
55
+
Position: 0
56
+
Default value: None
57
+
Accept pipeline input: True
58
+
Accept wildcard characters: False
59
+
```
60
+
61
+
### -SensitivityLabelId
62
+
ID of the sensitivity label to be assigned, or empty string to remove the sensitivity label.
63
+
64
+
```yaml
65
+
Type: string
66
+
Parameter Sets: (All)
67
+
68
+
Required: True
69
+
Position: Named
70
+
Default value: None
71
+
Accept pipeline input: True
72
+
Accept wildcard characters: False
73
+
```
74
+
75
+
### -AssignmentMethod
76
+
The assignment method of the label on the document. Indicates whether the assignment of the label was done automatically, standard, or as a privileged operation (the equivalent of an administrator operation).
77
+
78
+
```yaml
79
+
Type: Guid
80
+
Parameter Sets: (All)
81
+
Accepted values: Standard, Privileged, Auto
82
+
Required: False
83
+
Position: Named
84
+
Default value: None
85
+
Accept pipeline input: True
86
+
Accept wildcard characters: False
87
+
```
88
+
89
+
### -JustificationText
90
+
Justification text for audit purposes, and is required when downgrading/removing a label.
91
+
92
+
```yaml
93
+
Type: Guid
94
+
Parameter Sets: (All)
95
+
96
+
Required: False
97
+
Position: Named
98
+
Default value: None
99
+
Accept pipeline input: True
100
+
Accept wildcard characters: False
101
+
```
102
+
103
+
## RELATED LINKS
104
+
105
+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
0 commit comments