Questions tagged [roles]

In various access control systems, roles define a group of users and organize permissions into a more manageable structure.

In various systems, roles define a group of users and organize permissions into a more manageable structure. In systems which feature roles, a user may belong to many roles, and typically roles can be nested hierarchically.

Roles are a common feature in operating systems as well as database management systems.

Further Reading

3030 questions
1
vote
1 answer

Permissions system for a CMS

does anyone know of a good tutorial for how to build a permissions and roles system for a CMS?
user258406
  • 45
  • 5
1
vote
1 answer

Multisite Custom Roles - Applied by Default?

The Question: How do you create a custom role defautly applied to new sites on a network? I'm trying to greatly reduce freedom on newly created network sites. Here is an example: add_role('basic_user', 'Basic User', array( 'read' => true, //…
Orangeman555
  • 1,179
  • 2
  • 21
  • 45
1
vote
1 answer

ASP.NET: How can I redirect users not in a Role to a specific page if they ARE logged in?

I have a standard ASP.NET website with Forms Authentication. The "Moderators" role which some users have, should allow them to access the "/moderators/" folder. However if a user who is not in the moderators role tries to access this folder, they…
NickG
  • 9,315
  • 16
  • 75
  • 115
1
vote
1 answer

Designing Role/User based application security

I am sure this has been done by many of you and was looking for some guidance into designing a robust, scalable, application that can handle data (row level) security for multiple users. We are looking at a system whereby users, some acting as…
Gotts
  • 2,274
  • 3
  • 23
  • 32
1
vote
1 answer

drupal 7 restrict role access for one single node

I have set up a site with role access permissions for different node types. For just one node, I have to remove de access permissions for just one single role, the others will stay unchanged. Because the site has already installed many modules I…
1
vote
3 answers

New role in WooCommerce

I searched and searched and searched and could not find the answer. My Question: For a project we need to implement a new customer role in WooCommerce. By default WooCommerce offers the roles "Customer" and "Shop Manager". We would need something…
user3344956
  • 11
  • 1
  • 2
1
vote
2 answers

Check if role consists of particular user in DB?

I am trying to drop user from role in several databases. It is not sure that user can be in same role in all the databases. How can i check if the user is in the role and if it is drop the user from the role. e.g. IF user exists in role BEGIN …
sanjeev40084
  • 9,227
  • 18
  • 67
  • 99
1
vote
1 answer

Different versions of the same entity type (any ORM) for different roles/authorization levels

Consider, for example: public interface IStaff { FullName name { get; set; } EMailAddress email_address { get; set; } SocialInsuranceId ssn { get; set; } PositiveInt age { get; set; } Address home_address { get; set; } } For…
Jay
  • 56,361
  • 10
  • 99
  • 123
1
vote
1 answer

How can I create IAM Roles for Amazon EC2?

I am exploring IAM Roles. I am wondering how roles can be accessed on behalf of a user on EC2. Any help is highly appreciated. Thanks
user3086014
  • 4,241
  • 5
  • 27
  • 56
1
vote
2 answers

MVC5 - using Roles in controllers

would appreciate help on this subject: I'm trying to use my own roles, like I did on MVC4 (custom membership) I.E. [Authorize(roles="Admin")] for some controllers. I'm a bit confused with the new Identity thing. Later, I will also need to use the…
1
vote
1 answer

View only permission for community/site members for Wiki portlet is not working in Liferay

I have created a site where I have set two roles. Role 1 has been set to user1 with all permissions for Wiki and "VIEW " permission for user2 in Role2. But when I login as user2, I am able to edit the Wiki page. How do I restrict the user2 from…
Kiran Kulkarni
  • 1,434
  • 2
  • 18
  • 40
1
vote
1 answer

Advanced Role Permissions in Rails

I have an app where there are different layers of permissions that can manage, or just simply create/view different objects. An example of my breakdown: A host can view a reservation for a restaurant, and make an edit, but cannot create A doorman…
1
vote
1 answer

Implicit role assignment using MVC authorization

I am using my own custom Authorize attribute MyAuthorizeAttribute : AuthorizeAttribute to do authorization which is working great. The problem is with role assignment. In the security model i am working with if a user has Admin role User and Manager…
PUG
  • 4,301
  • 13
  • 73
  • 115
1
vote
0 answers

EJB and isCallerInRole: wrong output with multi-roles check in SessionContext

I have a problem with isCallerInRole method from the SessionContext. The application run on Glassfish 2.1 and uses JDK6. In the following class, I'm exposing two methods that ascertain if the current user has a specific role or not. In particular,…
mat_boy
  • 12,998
  • 22
  • 72
  • 116
1
vote
3 answers

Configuring Share Roles in Existing Installation

I'm trying to create a new role (permissions group) for Share sites in a existing installation. Before asking I did my 'homework' and found useful resources such…