Questions tagged [user-roles]

A user role is a group of users that share the same privileges or permissions on a system. Use this tag for questions about how user roles work in a particular security framework, or questions about the implementation of user roles in your program.

A user role is a group of users that share the same privileges or permissions on a system. For example, a blog platform may define a group of platform admins and groups of blog admins, blog editors and blog readers.

The concept is linked to , as a user role is a group of users who share common user permissions. It is common that a system allows users to have several roles, the user then has the union of all the permissions of their roles.

Use this tag for questions about how user roles work in a particular security framework, or questions about the implementation of user roles in your program.

944 questions
0
votes
1 answer

How to check whether the user has permission?

I have two tables (users and permissions). How can I check whether a user has pemission? in this case permission for editing topics 1 is the admin account TABLES: users (id, username, acc_type) (1, mirso, 1) permissions (id, name,…
0
votes
1 answer

Define custom fields for some users

For my application, i need to define these kind of profiles : Salesman Customer Administrator A user can have one or all these profiles. It's why i didn't choose the inheritance design, I prefered to choose a role strategy, so a user can have…
julus
  • 431
  • 1
  • 5
  • 14
0
votes
1 answer

Magento - Allow edit of only one CMS page for certain role

In my eshop I have a role for some users that is quite limited. I would like to give the ability to this role to be able to edit ONE and only that one CMS page. I don't want to allow them to edit all CMS pages. Is there any workarround? Any other…
Panos
  • 7,227
  • 13
  • 60
  • 95
0
votes
2 answers

Liferay 6.1 - How to programatically assign a role to a user (in a hook)

I am using liferay 6.1.1 CE GA2 bundled with tomcat 7.0.27 and hsql. I have created a hook on ExpandoValue where I want to assign a role to a user when I update his custom fields. Here is what I have tried : public class UserTagValueListener…
user2765347
  • 1
  • 1
  • 2
0
votes
0 answers

WordPress plugin to add user role using textbox and form submit

I'm trying to create a plugin where an admin (custom defined user role, not regular administrator) can access an options page, enter a specific username into a textbox, hit submit, and by doing so add a second user role to that user. I know that…
Works for a Living
  • 1,262
  • 2
  • 19
  • 44
0
votes
1 answer

symfony 2 add roles in an event listener before firewall check

I have an application where an user can belong to many companies. The user access the company portal via compnaysubdomain.example.com). When an user access a compnay portal I have to update the roles he have for that company (By checking the…
brpaz
  • 3,618
  • 9
  • 48
  • 75
0
votes
1 answer

wordpress 3.5 limit roles available when creating a user

I have a Wordpress with 2 admin roles : the super admin, who can do anything the normal admin, who has limited acces to WP functions (everything except WP configuration). This role was created using a plugin to manage user roles. I want to add the…
Yoh
  • 316
  • 3
  • 9
0
votes
1 answer

How to get a list of users in a certain role?

I'm creating a module in Drupal 7 that needs to get a list of users from a certain role. I've seen examples showing how to get the logged in user's role, and a list of roles, but I haven't seen anything to help me get the list of users in a certain…
Jesse Samson
  • 133
  • 1
  • 12
0
votes
0 answers

Active directory role managing

I develop Intranet application and i have a problem with AD role. User is logged by windows I need only read AD Roles of user by AspNetWindowsTokenRoleProvider provider
Davecz
  • 1,199
  • 3
  • 19
  • 43
0
votes
1 answer

Edit user form with roles

I am trying to make an new/edit user form with role selection. I managed to make the login but I am struggling to figure out how to make the role dropdown work. (roles table have 2 entries: ROLE_ADMIN and ROLE_USER) My entity configuration…
ka_lin
  • 9,329
  • 6
  • 35
  • 56
0
votes
2 answers

User role aware UI

I am designing a system based on Soa principles. For authentication, traditional token approach will be used. But authorization needs to be taken to the point where buttons and labels are activated or deactivated inside the consumer app depending…
user1275011
  • 1,552
  • 1
  • 16
  • 36
0
votes
1 answer

I want to add new role as ROLE_PUBLISHER which only have access to one action in symfony

In my security.yml I added the role ROLE_PUBLISHER. I set it up so that ROLE_USER inherits the ROLE_PUBLISHER: security: role_hierarchy: ROLE_USER: ROLE_PUBLISHER Controller code as follows. /** * @Route("/{id}", requirements={"id"…
user2506165
  • 43
  • 1
  • 3
0
votes
1 answer

c# MVC: How to update user roles?

I have a viewmodel which exposes a few public virtual ICollection Roles { get; set; } This is great for bringing back what roles a user belongs to.. But how do I update the roles of a user from a form. For testing I've tried adding a hidden…
Simon Hopwood
  • 83
  • 2
  • 9
0
votes
1 answer

How to manage multiple roles and users in MS Access 2010 application?

we have to build an application solely using MS Access all the forms have to be designed in MS access and DB is also in MS access. what will be the best way to implement such an application.
0
votes
1 answer

possible plugin for not allowing certain user roles to login until payment

Wanted to inquire if there is any certain plugin available that restricts certain user roles to signin unless they have paid for the subscription . if their subscription fee is cleared then they are allowed to login otherwise not. The prefered…
Abdul Ali
  • 1,905
  • 8
  • 28
  • 50