Skip to content

Commit

Permalink
Fix Add-PnPFileSensitivityLabel cmdlet to allow empty string value fo…
Browse files Browse the repository at this point in the history
…r resetting file sensitivity label (pnp#4566)

Co-authored-by: Gautam Sheth <[email protected]>
  • Loading branch information
gautamdsheth and Gautam Sheth authored Nov 21, 2024
1 parent bfd247e commit 28ed2f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- 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)
- Fixed `-ConsistencyLevelEventual` flag on `Invoke-PnPGraphMethod` to work correctly. [#4523](https://github.com/pnp/powershell/pull/4523)
- Fixed `Get-PnPServiceHealthIssue` returning an error when certain service states were active [#4530](https://github.com/pnp/powershell/pull/4530)
- Fixed `Add-PnPFileSensitivityLabel` cmdlet to allow empty string value to reset file sensitivity label.

### Removed

Expand Down
2 changes: 2 additions & 0 deletions src/Commands/Files/AddFileSensitivityLabel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class AddFileSensitivityLabel : PnPGraphCmdlet
public FilePipeBind Identity;

[Parameter(Mandatory = true)]
[AllowNull]
[AllowEmptyString]
public string SensitivityLabelId;

[Parameter(Mandatory = false)]
Expand Down

0 comments on commit 28ed2f1

Please sign in to comment.