Skip to content

Added -DefaultSensitivityLabelForLibrary to Set-PnPList#2825

Merged
gautamdsheth merged 4 commits intopnp:devfrom
KoenZomers:SetSensitivityLabelOnLibrary
Feb 17, 2023
Merged

Added -DefaultSensitivityLabelForLibrary to Set-PnPList#2825
gautamdsheth merged 4 commits intopnp:devfrom
KoenZomers:SetSensitivityLabelOnLibrary

Conversation

@KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Added -DefaultSensitivityLabelForLibrary to Set-PnPList which allows setting the default sensitivity label for a library

@gautamdsheth gautamdsheth merged commit fdad851 into pnp:dev Feb 17, 2023
@NaveenRajdev
Copy link

Hello @KoenZomers

I am trying to use the above command but it says

Set-PnPList : A parameter cannot be found that matches parameter name 'DefaultSensitivityLabelForLibrary'.

I have update the module to the latest. Could you please tell me what I am doing wrong.

Thanks

@KoenZomers
Copy link
Collaborator Author

@NaveenRajdev Update to the latest nightly release using Update-Module PnP.PowerShell -AllowPrerelease

@NaveenRajdev
Copy link

NaveenRajdev commented Mar 1, 2023 via email

@jfmathieu
Copy link

Hi Naveen,
I make it work with the build 2.0.35.
It work. If you call the fonction with the name you will need to be Conformity Administrator to get the GUID automaticly.
If you call it with the GUID directly, it will work with lower priviledge.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants