Tag Info

New answers tagged

0

Try the below code. You should first get the Role Assignment if the group from the role assignment collection of the web.Then use importRoleDefinitionBindings method of the roleassignment object to add the Read role definition binding. This will remove the existing bindings and add the new binding. var clientContext; var currentWeb; var ...


0

resetRoleInheritance() method is present in SharePoint 2010 JavaScript client object model and it resets the role inheritance for the securable object and inherits role assignments from the parent securable object. SP.List inherits from SP.SecurableObject Class. Hence resetRoleInheritance() can be called on SP.List object just like breakRoleInheritance. I ...


1

Using csom PowerShell you can try below function to give a group your desired permissions it uses Microsoft.SharePoint.Client.RoleDefinitionBindingCollection and Microsoft.SharePoint.Client.RoleType to get role types. function Set-PermissionsOnList() { param( [Parameter(Mandatory=$true)][string]$url, ...


2

You should use microsoft.SharePoint.Client.RoleDefinitionBindingCollection instead of Microsoft.SharePoint.Client.RoleAssignment. Try below snippet (Not tested but will give you idea of what all steps are required): # Get the list by Title and load. $web = $ctx.Web $list = $web.Lists.GetByTitle("Quiz") $ctx.Load($list) # Load in list of groups on the ...



Top 50 recent answers are included