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
8
votes
1 answer

How to use Roles in user identity in MVC 5

I want to use asp.net useridentity in mvc 5, I do these steps: 1) create a mvc project. 2) create my own database and change the connectionstring in web.config form: to: 3) I run the project and create a new user to add…
8
votes
2 answers

WordPress Create Custom Capability

I'm developing a shopping cart plugin, and planning to create a new user role for customers. My question is how to create custom capabilities so that i can assign these custom capabilities to the new user role, this answer provided a way to create…
Minqi
  • 79
  • 1
  • 1
  • 2
8
votes
2 answers

how to use spring security for user role management?

I need to design a user role management module for online examine tool application, There are several users in the system (Admin, Moderator, Contributor, Examiner). These users have different privileges for the system. I need to use the Spring…
zlas
  • 185
  • 1
  • 3
  • 14
8
votes
1 answer

How to create and register new roles in Symfony2

I see from the official Symfony2 doc on Security that new roles can be defined besides the "classical" ones (i.e. ROLE_USER, ROLE_ADMIN, etc.). How can I define new roles and register them to my Symfony2 application in order to create roles…
JeanValjean
  • 17,172
  • 23
  • 113
  • 157
7
votes
1 answer

Designing a multiple level user permission system

I am working on a site that has a database schema like a tree. From top to bottom I have: One Company can have many Locations that can have many Fleets that can have many Vehicles The user permission system has to be flexible in that someone can…
Vanessa
  • 361
  • 2
  • 3
  • 9
7
votes
4 answers

Defining Roles with Rolify

I am trying to make an app with Rails 4. I am looking at role management and want to use Rolify because it supports instance level role assignment. For others looking at the same problem, there are 2 really good answers below (I can only tick one…
Mel
  • 2,481
  • 26
  • 113
  • 273
7
votes
6 answers

Using ROLES in jhipster?

I tried to add and change roles in jhipster. First I just tried to change one use case's role to admin from user. Then I tested it and user can add employee even if the roles is ROLE_ADMIN so it didn't change anything. I added new role as well,…
Sami
  • 2,311
  • 13
  • 46
  • 80
7
votes
2 answers

@PreAuthorize not working - Is there an unresolvable circular reference?

I'm trying an example on spring security (user-role authorization) using @PreAuthorize annotation, got stuck up with below error. Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate…
Vishwa
  • 607
  • 2
  • 11
  • 21
7
votes
3 answers

Check if User has Role - Parse Cloud Code

Writing a Parse Cloud Function (which uses Parse Javascript SDK) and I am having trouble checking to see if the current user has role "Admin". I'm looking at the web view of the Role class and a role with the name "Admin" exists, if I click "View…
Sorry-Im-a-N00b
  • 1,151
  • 2
  • 12
  • 20
7
votes
2 answers

Mongo - How can I find out what roles the user I am connected as has? How can I assign a user full read-write access?

I have been able to connect to my Mongo instance (which is hosted in the cloud at Compose.io -- it is an "addon" through Heroku) from my MacBook terminal command line. However, I cannot perform any operations. Commands like "show collections" and…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
7
votes
5 answers

Assigning Roles to Application Users

As in all the Line-Of-Business Applications, an application may have multiple Users with some Roles assigned to them. We have recently shifted to WPF MVVM Architecture and looking for best way to assign role to each logged in user. There are many…
Marshal
  • 6,551
  • 13
  • 55
  • 91
6
votes
1 answer

WooCommerce shipping methods based on user roles and subtotal amount

I need to add two different shipping rates, depending on the role of the user making the purchase. I have a role that is 'wholesale_customer' and should not pay shipping costs. However, the purchase must be prevented and a message added at Checkout…
gemita
  • 2,686
  • 2
  • 10
  • 17
6
votes
1 answer

Enabling Swagger springdoc-openapi-ui (OpenAPI 3.0) with Spring Security - Cannot access swagger-ui.html (401)

Swagger OpenAPI 3.0 is working with springdoc-openapi-ui and a custom OpenAPI Bean. pom.xml org.springframework.cloud spring-cloud-starter-parent
Phipsll
  • 81
  • 1
  • 2
  • 9
6
votes
1 answer

Role based authorisation for Node js or Express js

Is there any library for role-based authorization in node.js or Express js? Like: Super Admin, Admin, Editor, User etc.
Tanvir Islam
  • 143
  • 3
  • 9
6
votes
3 answers

What's the best Kibana multi tenancy free open source project?

I'm trying to add a role based access control over Kibana to have different privileges and dashboards for different types of users and I found those projects: Elastic Shield Plugin Search Guard Kibana Multitenancy Module Elasticsearch Read Only…
1 2
3
62 63