Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.09 KB

File metadata and controls

35 lines (29 loc) · 1.09 KB

#Set-SPOListPermission Sets list permissions ##Syntax

Set-SPOListPermission -Group <GroupPipeBind> -Identity <ListPipeBind> [-AddRole <String>] [-RemoveRole <String>] [-Web <WebPipeBind>]
Set-SPOListPermission -User <String> -Identity <ListPipeBind> [-AddRole <String>] [-RemoveRole <String>] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
AddRole String False
Group GroupPipeBind True
Identity ListPipeBind True
RemoveRole String False
User String True
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Set-SPOListPermission -Identity 'Documents' -User 'user@contoso.com' -AddRole 'Contribute'

Adds the 'Contribute' permission to the user 'user@contoso.com' for the list 'Documents'

###Example 2

PS:> Set-SPOListPermission -Identity 'Documents' -User 'user@contoso.com' -RemoveRole 'Contribute'

Removes the 'Contribute' permission to the user 'user@contoso.com' for the list 'Documents'