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

learn more… | top users | synonyms

6
votes
1answer
4k views

All Authenticated Users claim

I'm adding items to my list by powershell script. I need to fine-grain user permissions to added items. Code I'm using now: $claim = New-SPClaimsPrincipal -ClaimValue $role -ClaimType $ROLE_CLAIM ...
6
votes
1answer
4k views

Check for role assignment including groups

I've a site which uses some custom roledefinitions for assigning rights to users. I have implemented a method which checks if a certain user is assigned to a specific role, this method is as follows: ...
2
votes
1answer
30 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
45 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 ...
2
votes
2answers
1k 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
1answer
17 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
36 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 ...
1
vote
1answer
183 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?
1
vote
2answers
2k views

Add FBA role to SharePoint 2010 group

I've setup FBA for SharePoint 2010 following these instructions: http://blogs.msdn.com/b/kaevans/archive/2010/07/09/sql-server-provider-for-claims-based-authentication-in-sharepoint-2010.aspx It ...
1
vote
2answers
157 views

How do I troubleshoot an error trying to add a Farm Administrator

Can someone please explain to me HOW to figure out what is causing the unbelievably vague error of "Server Error in '/' Application....turn off custom errors...blah, blah, blah" Of course, I have ...
1
vote
0answers
20 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 ...
1
vote
0answers
68 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 ...
1
vote
0answers
46 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
2answers
69 views

Checking roles for an item

How can I check if current user has roles for editing, creating an item in a list in Sequential Workflow ?
1
vote
1answer
290 views

How can i get entire role assignments from SP 2010 using the COM interface including the users in the AD groups and not the groups names?

I've been trying to get all the RoleAssignments using the COM interface. the problem is that i get the AD user group names instead of the actual users inside the groups. my code looks something like ...
0
votes
2answers
20 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
2answers
435 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
2answers
1k views

How can i get roles of users in sharepoint 2010 using Client Object Model?

I need to get roles for current user(like visitors,contributors,administrators etc.) from sharepoint 2010. I am using Silverlight client object model to deal with sharepoint 2010 API. Kindly share ...
0
votes
2answers
390 views

Securing Application Pages

I have a set of application pages stored in the _layouts virtual directory, that I'd like to secure, in order to prevent unauthorized access to the pages, as well as prevent certain actions from being ...
0
votes
1answer
148 views

SharePoint Claims authentication and web.config role authorizations

I am trying to secure a few application pages with role base authorizations can't seem to get it working , if I set a deny rule for all users the rule works, but anything with a specific group or ...
0
votes
1answer
206 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
315 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
1answer
119 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); ...
0
votes
0answers
19 views

How to split our SP2013 roles?

We have only 1 SP Server, with SQL Server running on it. Our SP contains 3 web apps, and 1 with FBA (does it rly matter ? because SQL etc.). How could we separate 1 web app (the one with FBA) and the ...
0
votes
1answer
70 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
86 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
187 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 ...
0
votes
1answer
55 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
958 views

Problem getting just created Groups programmatically

I'm encountering some problems getting "newly created" groups.. This is the code I'm using: Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite ...
0
votes
0answers
1k views

How to get RoleAssignment programmatically from a SPFolder without .Item

I need to get the permissions associated to a Folder. I can get the folder by the getfolder method but the item has the .Item property null. When i Access to the .DocumentLibrary i get the ...