Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot apply a retention label that leaves a record unlocked by default #2799

Closed
1 of 6 tasks
martinlingstuyl opened this issue Feb 10, 2023 · 0 comments · Fixed by #2800
Closed
1 of 6 tasks
Labels
bug Something isn't working

Comments

@martinlingstuyl
Copy link
Contributor

Reporting an Issue or Missing Feature

When I apply a retention label using PnP PowerShell, it could have been set in Purview to leave a record Unlocked By Default. In the current setup though, this is ignored by PnP.PowerShell and the record is locked anyway.

When applying a label using PnP.PowerShell
image

When applying the same label manually
image

Expected behavior

I expect PnP.PowerShell to leave a record unlocked by default when applying a label that has that behavior configured in Purview.

Actual behavior

It does not.

Steps to reproduce behavior

  1. Create a retention label in Purview that has record capabilities but leaves the file or list item unlocked by default.
  2. Publish the label
  3. Connect to a site and run the following script:
Set-PnPListItem -List "<list_id>" -Identity <item_id> -Label "<label_name>"

What is the version of the Cmdlet module you are running?

1.12

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@martinlingstuyl martinlingstuyl added the bug Something isn't working label Feb 10, 2023
gautamdsheth added a commit that referenced this issue Feb 10, 2023
…ckedasdefault

Fix retentionlabel issue for UnlockedAsDefault labels. Closes #2799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant