Questions tagged [role-assignment]

The role assignment is the relationship among the role definition, the users and groups, and the scope (for example, one user may be a reader on list one, while another user is a reader on list two).

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
104 views

REST API equivalent of SPRoleAssignmentCollection.AddToCurrentScopeOnly

To add a custom permission to a List or an item, we can use SPRoleAssignmentCollection and we can also use AddToCurrentScopeOnly to avoid adding users with Limited Access permission to the parent. In ...
2
votes
0answers
39 views

Error after assigning permissions to a group using CSOM

After assigning permissions to a group on a Sharepoint list, the users of the group trying to access said list get the Microsoft.SharePoint.Client.ServerException: "The list « listTitleExample» does ...
1
vote
0answers
111 views

Addroleassignment uses a subsite specific principal guid using Rest

I am trying to add role assignments to SharePoint Online to a folder on a personal sub site. I looked up all the users against the parent site and I have a guid of 282. When I try and assign a new ...
1
vote
1answer
1k views

SharePoint 2013 REST API Filter hidden Fields

I have a little Problem. I'm trying to do the following. There is a Field on SharePoint List items called HasUniqueRoleAssignments that is hidden on a standard REST call. If I put it in the select ...
0
votes
0answers
19 views

Access Denied to list after granting permissions to a group on a list

After granting View/Add/Edit/Open/Delete ListItems to group on a list, the users of the group still get Access Denied when trying to access the list. Here's the code I used to grant permissions: ...
0
votes
0answers
10 views

I am Unable to Assign group and permissions to Specific file or folder using CSOM

everytime exception occures "Cannot add a role assignment with empty role definition binding collection " , I tried all the solution from other sources still facing same issue..please help.. my code ...
0
votes
0answers
16 views

ListItem.BreakRoleInheritance(true, false) Throws WebException: The remote server returned an error: (403) Forbidden. Retrying works sometime

public bool BreakListItemRoleInheritance(string siteUrl, Guid listId, int itemId, bool copyRoleAssignments) { try { var clientContext = Admin....
0
votes
0answers
14 views

Get User Access list by Folder Name instead of Folder ID in SharePoint

Is it possible to retrieve the list of users who have access to a folder in Sharepoint via folder name instead of folder ID? Reason: The folder is from a subsite, and have another unique id as ...
0
votes
0answers
8 views

SharePoint SecurityGroup role assignment - what value does it use? samAccountName, CN, or Name?

I have a sharepoint role assignment that points to a SecurityGroup on my active directory. DN = CN=Building Leasehold,CN=Users,DC=sp2016,DC=local name = Building Leasehold CN = Building Leasehold ...
0
votes
1answer
53 views

getting all AD groups and users of a site collection

Hello everybody I am quite new to the Sharepoint, I am trying to get all the AD groups who have permissions on a sitecollection. I am able to get all the SPgroups and users using the code below in my ...