Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [roles]

Roles are a component of SharePoint that define a user's access permissions to the internal Web site.

1
vote
1answer
30 views

How can I get current user roles for specific document in a document library?

I can add a role to a document with this code: var REST = globalvars.absoluteUrl + "/_api/SP.Sharing.DocumentSharingManager.UpdateDocumentSharingInfo"; var data = JSON.stringify({ '...
1
vote
0answers
46 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

Remove Role Assignment by Role Definition name

I'm adding permissions for a user for a specific SPListItem: SPRoleAssignment roleAssignment = new SPRoleAssignment(user); roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["ASpecificRole"...
0
votes
1answer
437 views

Sharepoint Online: How to unshare public links (AnonymousEdit/View links) via REST API

I'm looking to disable the Anonymous links created on my OneDrive for Business site through the REST API I used to delete the Roleassignments for Sharepoint\Reader... or Sharepoint\Writer... which ...
1
vote
1answer
308 views

Create Forms (Membership) Users using PowerShell

I have Forms Based Authentication Setup in my SharePoint environment, using the OOTB "aspnetdb" and SQL Membership Provider and SQL Role Providers. Now I have a requirement to populate the DB with ...
0
votes
2answers
2k views

Difference between role assignment, role definition, role definition binding and role

Can anyone please explain me with proper examples (not code) the difference between role assignments, role definitions, role definition bindings and roles? The MSDN documentation is not very useful ...
0
votes
1answer
441 views

What is the difference between SharePoint 2013 groups and roles?

I'm in the process of setting up a SharePoint 2013 server with user groups, permissions, etc., and I am confused about the difference between SharePoint user roles, and SharePoint user groups. ...
4
votes
2answers
101 views

“RoleType.Editor” is missing from RoleType enum : 2010 CSOM C#

I am trying to assign the existing SharePoint Group Permission to my folder in Document Libray. I am using following code: var roletypes = clientContext.Web.RoleDefinitions.GetByType(RoleType.Editor)...
3
votes
1answer
1k views

Get User's Roleassignments / Office 365 group permissions REST API

I have added users to a Office 365 group but I can't see which users are in which group using the Sharepoint API. When I query currentuser?$expand=Groups it's empty but when I ask the roleassignments ...
0
votes
1answer
168 views

How to define department roles hierarchy in SharePoint 2010 and get user's Manager information in c#?

Having the SharePoint site where need to configure the access to the lists and libraries according the roles and permissions. How to define following hierarchy in SharePoint 2010 site. What groups I ...
3
votes
2answers
10k views

Get site owners, full control user from all sites and subsites in a sharepoint 2013 site collection

Can you please give me a script or commands to get the all the list of users are having site owner and full control access from sites/sub-sites in a site collection. I tried this but it is not giving ...
1
vote
1answer
231 views

How to get role of SPGroup

I wrote the following code: SPGroup spGroupItem = web.SiteGroups["Site Owners"]; SPPrincipal principal = spGroupItem; SPRoleAssignment oRoleAssignment = web.RoleAssignments.GetAssignmentByPrincipal(...
4
votes
2answers
973 views

How to restore inheritance of just the role definitions (“permission levels”)?

I'm facing a site collection where both role assignment ("permissions") inheritance and role definition ("permission levels") inheritance has been broken. The role assignment inheritance can be ...
1
vote
2answers
64 views

Can the site owner browse the site in Viewer's view?

We are using SP2013 on-premise. On a site collection we have some both public content and sensitive content. Viewers do not have permission on sensitive contents. The site owner (who have full ...
2
votes
1answer
1k views

How do I increase the maxUrlLength for my Office365 tenant?

I am getting the following error when I try to change role assignments for a file. I can tell from the error that it exceeds the MaxUrlLength value but where do I change this value? Code 401 Body ...
0
votes
2answers
914 views

Relation between an FBA Role and SharePoint Group

I have worked with FBA Membership using SQL. Once we add a Membership User, we can create an equivalent SPUser in SharePoint. But I am not sure how I can establish that kind of a relationship ...
0
votes
1answer
70 views

Roles and analysis of results Excel Surveys

I have a excel survey created in a SharePoint page. Right now if I share the link, anyone can fill in the survey. Can I somehow restricted so that only users with an account on the intranet, or ...
1
vote
1answer
43 views

What is the purpose of the Notes parameter in the SPRoleAssignment constructor?

There are two constructors for the SPRoleAssignment class: public SPRoleAssignment(SPPrincipal principal) public SPRoleAssignment(string LoginName, string Email, string Name, string Notes) The ...
0
votes
2answers
705 views

Sharepoint Code to break inheritance and add new permissions at custom list level

I have a site collection with permissions set up as: EVERYONE READ I have a custom list. Here, I want to add permissions as EVERYONE CONTRIBUTE. I want to remove the Everyone Read Access Permssions ...
0
votes
1answer
2k views

Change Group permission using JSOM in SP 2013

I'm trying to change the permissions of an SP Group in an SPWeb using JSOM. I can add a new role using a new RoleDefinitionBindingCollection oblect to the group. But a similar approach to remove a ...
1
vote
1answer
477 views

ResetRoleInheritance problem

Im trying to reset a list's inheritance using javascript and Sharepoint 2010. Here is my code so far: <script language="JavaScript"> <!-- var vcms_currentCTX; var vcms_currentWEB; var ...
4
votes
2answers
4k views

Adding Read-Only-permissions to a list for a Sharepoint Group using Powershell CSOM

I am trying to add read-only-permissions to a specific group called "Students" for a list I have created called "Quiz". I have to use PowerShell CSOM, and in every other tutorial I've been through, ....
1
vote
1answer
1k views

breakroleinheritance for a folder powershell csom

I am trying to break permission inheritance for certain folders in my document library in office 365. However when $folder.BreakRoleInheritance($false) is executed I get an error: Method ...
1
vote
1answer
590 views

Error when querying list/roleassignment in 2013 REST API - Need to know if a user can query a list/library

In sharepoint 2013, I need to check if a the current user, has access to a specific list, for that I'm using the following REST endpoint (using AJAX) host/_api/web/list(guid"xxxxxxxxxxx")/...
0
votes
2answers
69 views

Can a document be view-only?

We have a very specific requirement in our CMS to make documents view only. The business users do not mean to make them non-editable - they want to prevent the users from downloading the document to ...
5
votes
0answers
946 views

sharepoint workflow rest api add role assignment exception

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api http://sp_site/_api/web/lists/getByTitle('Test')/items(1)/breakroleinheritance(copyRoleAssignments=...
1
vote
1answer
2k views

How to Retrieve Specific User Roles (Permission Levels) from SharePoint Site Using Client Object Model?

I'm trying to get user names from List and for those user roles i need to Retrieve from Site using CSOM. Please help me if any one have idea i have written the below code RoleAssignmentCollection ...
1
vote
1answer
2k views

How to access the users roles in a easy way, using REST api?

I am trying to obtain user roles to pass from Sharepoint server to a specific tool, and I have to perform a lot of gets to obtain it. There is a simples REST request to do it?
0
votes
2answers
1k views

Sharing Files/Folders REST API

I'm currently using the REST API to upload files/folders and share the files with other users. Files/Folders are being uploaded to the following: https://tenant-my.sharepoint.com/personal/...
0
votes
0answers
44 views

Assign permission to user after document creation

So, i've been trying to make for a while now a way to apply permission to the creator for a file when its added on a library. its something like this i've been doing so far public override void ...
0
votes
1answer
2k views

Cannot modify User Roles in InfoPath

I am trying to modify the User Roles for my form but the button 'User Roles' button in the Data tab is greyed out and I cannot click it. Anyone has any idea what might be the reason? I tried googling ...
3
votes
2answers
12k views

How to get groups and their roles/permissions on each individual subsite, without including groups from child elements (such as libraries)?

Using CSOM and C#, how can I get the groups that have permissions on a site along with their roles, given that I have the name of the subsite? Language might be a barrier here, and I tend to explain ...
2
votes
1answer
8k views

breakRoleInheritance and RemoveRole CSOM

I need to breakRoleInheritance on the items of a SharePoint2013 list. I need to remove all the current roles and add only the Owner and the Current user. How can I do it by client side? Thanks, Nk
1
vote
1answer
2k views

Add a SharePoint group to a role using JavaScript

I'm writing a script that adds user to a group (for example readers) on a site using a form and a PeoplePicker field. But I also want the script to be able to handle not only users, but also if it is ...
2
votes
1answer
550 views

How to work with SharePoint Roles Claim?

I'm working with a Claims-base authentication and I'm wondering what kind of roles I can put for a Claim of the type: http://schemas.microsoft.com/ws/2008/06/identity/claims/role
2
votes
1answer
402 views

What roles can't site collection administrators do that farm administrators can?

Trying to clearly distinguish what the roles that Farm Administrators, Site Collection Administrators and also Site Collection Owners each have. Moreover what roles can't site collection ...
1
vote
0answers
34 views

Fine-tuning SP2013 Document Library permissions

I have the need to give access to a role for creating documents and folders in a document library and giving access to another role to create documents (but not folders) How would I go about doing ...
0
votes
2answers
23 views

Sharepoint Roles configuration

When you install a sharepoint 2010, do you have to add Web Server (IIS) and application role manually or it is automatically installed when you do "Install software prerequisites"?
0
votes
1answer
205 views

How to hide Navigation Up icon for Read Only User

How do you check the roles in SharePoint 2010 so you can hide the Navigation Up icon? Users with Read Only access should not see this icon. Any suggestions would be greatly appreciated.
0
votes
1answer
449 views

Authorization against a user's membership in certain SharePoint groups via HttpModule

I'm trying to restrict access to certain pages of a SharePoint Web Application based upon a user's membership in certain SharePoint groups (restricting access to specific pages and functions, while ...
0
votes
1answer
1k views

Using custom SPRoleType

Environment: SP2010 Enterprise, VS2012, c# Server-Side, full control of environment I'm trying to assign unique permissions to an SPItem (a folder in a document library) through a console app on the ...
0
votes
1answer
1k views

SP2010 JSOM: possible to automate breaking inheritance of item, and controlling role assignment using javascript

i am working on a custom system I am building into a site that allows various reps, of various departments to enter project information and many different aspects of related data (children) into the ...
1
vote
0answers
153 views

SPRoleType.None Problem

I want to set the SPRoleType.None to a page for a user but I have a problem using roleDef = web.RoleDefinitions.GetByType(SPRoleType.None); I understand that for None and Guest this can't be done ...
0
votes
1answer
92 views

Sharepoint Library View - Role Based

I have a library of reports. I also have Active Directory with users and groups. Groups are assigned access to the reports in the library. A group in this case is synonymous with a users role. I ...
0
votes
1answer
686 views

How to get sub-sites of a sub-site?

I'm working on a user control that should show all site names, within a given site, for the current FBA user. My site is structured using SP Groups, FBA Roles and FBA users, i.e. 'Harry' is a ...
0
votes
2answers
1k views

The impact of BreakRoleInheritance()

I call BreakRoleInheritance on a document (the actual list item) in order to assign someone of less permissions the 'contribute' rights to that particular item. In doing that, have I 'broke' the ...
0
votes
1answer
170 views

Simple permissions question

I know how to grant someone certain role to a list (contribute or read for example) using C# such as: SPRoleAssignment userRoleAssignmentCont = new SPRoleAssignment(allUsers); ...
2
votes
2answers
3k views

Creating Group Programmatically with Reader Role

I am working with SharePoint 2010. I am creating groups in my site through code. There is no issue in that. At the time of creation I provide "Reader" role for my groups. But when I browse the listing ...
1
vote
0answers
55 views

How do I Augment Active Directory and CRM roles in Visual Studio?

I have a custom solution that allows users to login via CRM and this works fine. Also, users who can can login with windows authentication and this works fine. I need to combine the roles such that ...
1
vote
1answer
512 views

How to copy roles for folders?

When I create a folder in one list, I create a folder in other list. I need to copy roles of first folder and paste them to other folder. How can I do this?