Home

item level permission of a list for SharePoint Online using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-92165%22%20slang%3D%22en-US%22%3Eitem%20level%20permission%20of%20a%20list%20for%20SharePoint%20Online%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92165%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20list%20called%20ListName%20which%20conktains%205%20different%20items%20with%20title%20as%26nbsp%3B%3C%2FP%3E%3CP%3Eabc%2C%20xyz%2C%20lmn%2C%20ijk%2C%20efg%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20change%20the%20permission%20for%20each%20item%20at%20the%20item%20level%20using%20powershell%20so%20that%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eabc%20-%20read%3A%20members%2C%20edit%3A%20owners%3C%2FP%3E%3CP%3E%3CSPAN%3Exyz%20-%20read%3A%20members%2C%20visitors%2C%20edit%3A%20owners%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Elmn%20-%20read%3A%20members%2C%20edit%3A%20owners%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eijk%20-%20read%3A%20members%2Cvisitors%2C%20edit%3A%20owners%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eefg%20-%20read%3A%20members%2C%20edit%3A%20owners%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92494%22%20slang%3D%22en-US%22%3ERe%3A%20item%20level%20permission%20of%20a%20list%20for%20SharePoint%20Online%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92494%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20use%20a%20-Group%20command%20let.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20content%20for%20the%20links%20is%20not%20correct%20as%20the%20syntax%20says%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22pl-c1%22%3ESet-PnPListItemPermission%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3Ewhereas%20example%20says%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22pl-c1%22%3ESet-PnPListPermission%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EDo%20we%20have%20anything%20in%20PnP%20where%20i%20can%20actually%20set%20permission%20to%20an%20item%20and%20assign%20a%20group.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92176%22%20slang%3D%22en-US%22%3ERe%3A%20item%20level%20permission%20of%20a%20list%20for%20SharePoint%20Online%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92176%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20trying%20to%20do%20a%20similar%20thing%2C%20and%20did%20you%20this%20commandlet%20successfully%2C%20but%20I've%20noticed%20there%20isn't%20a%20-group%20parameter%2C%20even%20though%20it%20mentions%20it%20in%20the%20help.%20I'm%20not%20sure%20how%20to%20add%20a%20SharePoint%20group%20without%20this%2C%20as%20the%20group%20Display%20Name%20doesn't%20get%20recognised.%3C%2FP%3E%3CP%3EAlso%2C%20is%20there%20an%20equivelant%20commandlet%20to%20get%20an%20item%20level%20permission%20list%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92166%22%20slang%3D%22en-US%22%3ERe%3A%20item%20level%20permission%20of%20a%20list%20for%20SharePoint%20Online%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92166%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20should%20use%20Set-PnPListItemPermission%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FSetPnPListItemPermission.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FDocumentation%2FSetPnPListItemPermission.md%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

I have a list called ListName which conktains 5 different items with title as 

abc, xyz, lmn, ijk, efg

 

I want to change the permission for each item at the item level using powershell so that

 

abc - read: members, edit: owners

xyz - read: members, visitors, edit: owners

lmn - read: members, edit: owners

ijk - read: members,visitors, edit: owners

efg - read: members, edit: owners

 

 

3 Replies
Highlighted

Hi

 

I've been trying to do a similar thing, and did you this commandlet successfully, but I've noticed there isn't a -group parameter, even though it mentions it in the help. I'm not sure how to add a SharePoint group without this, as the group Display Name doesn't get recognised.

Also, is there an equivelant commandlet to get an item level permission list?

Highlighted

I am trying to use a -Group command let.

 

The content for the links is not correct as the syntax says:

Set-PnPListItemPermission

whereas example says

Set-PnPListPermission

Do we have anything in PnP where i can actually set permission to an item and assign a group.