Skip to content

Commit 28ed2f1

Browse files
gautamdshethGautam Sheth
andauthored
Fix Add-PnPFileSensitivityLabel cmdlet to allow empty string value for resetting file sensitivity label (#4566)
Co-authored-by: Gautam Sheth <[email protected]>
1 parent bfd247e commit 28ed2f1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7575
- Fixed the PnP PowerShell version check to only check nightly version in nightly builds and major version in release builds. [#4453](https://github.com/pnp/powershell/pull/4453)
7676
- Fixed `-ConsistencyLevelEventual` flag on `Invoke-PnPGraphMethod` to work correctly. [#4523](https://github.com/pnp/powershell/pull/4523)
7777
- Fixed `Get-PnPServiceHealthIssue` returning an error when certain service states were active [#4530](https://github.com/pnp/powershell/pull/4530)
78+
- Fixed `Add-PnPFileSensitivityLabel` cmdlet to allow empty string value to reset file sensitivity label.
7879

7980
### Removed
8081

src/Commands/Files/AddFileSensitivityLabel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public class AddFileSensitivityLabel : PnPGraphCmdlet
1818
public FilePipeBind Identity;
1919

2020
[Parameter(Mandatory = true)]
21+
[AllowNull]
22+
[AllowEmptyString]
2123
public string SensitivityLabelId;
2224

2325
[Parameter(Mandatory = false)]

0 commit comments

Comments
 (0)