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
Are you use, am not able to reproduce it ?
Also, the identity parameter is for the List Item ID not for the name of the list
It always throws error if the list doesnt exist:
Reporting an Issue or Missing Feature
Set-PnPListPermission not throwing exception if list doesn't exist.
Expected behavior
If list doesn't exist, I want to receive an erreur to catch it with a try-catch.
Actual behavior
The code continues to run and permission is not given.
Steps to reproduce behavior
Parameters User and Role is good in my case and permission is given if the list exist.
Set-PnPListPermission -Identity "/Lists/listNameDontExist" -User $IdentityObject -AddRole $role -Connection $ConnectionSite
What is the version of the Cmdlet module you are running?
1.10.0 PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: