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
2 answers

.net MVC add roles and add users and add roles to users + make part of a view only visible for a role

I am new to .net and have to create a project for school. I am using an MVC 5 template and it has a standard login but now I need 2 roles: student and teacher. How and where do I create those roles? And then how do I make it so that only logged in…
Burst of Ice
  • 386
  • 2
  • 6
  • 23
0
votes
1 answer

Laravel 5.2 Entrust: redirect user if he manually adds restricted URL

With Entrust, I implemented how user will be redirected to his own dashboard after login by adding this method in Authcontroller.php protected function authenticated() { if(\Auth::user()->hasRole(['super_admin',]) ) { return…
Tarunn
  • 1,038
  • 3
  • 23
  • 45
0
votes
1 answer

adding different types of user accounts in wordpress

I want to add 2 types of users in my wordpress website.I've read this post , but it's not providing any free method. Multiple User registration forms for different types of users in wordpress It'll be like "Buyer and Seller" , seller can add…
Nargis
  • 739
  • 7
  • 30
0
votes
1 answer

Assign post to custom user role

I created custom user role for my project, and want to admin assign post for some user with custom user role, but in wp-admin when I go to create new post, I can't see users with custom role in drop down for author of post. Anybody have idea how to…
ValerianT
  • 27
  • 4
0
votes
2 answers

How to generate content based on spring-security user rights

I want to generate some html content based on the user rights of a user who logged in with spring-security. I can't find much about this subject on the internet so far and i'm wondering what would be a good way to implement this. So far i was…
Mark Baijens
  • 13,028
  • 11
  • 47
  • 73
0
votes
1 answer

Laravel & MongoDB and an advanced role/permission system

I know there are a lot of role/permission packages like bican/roles or Zizaco/entrust . They are great but I have two problems and those packages can't solve it! I am using mongoDB and jenssegers/laravel-mongodb package which those packages do not…
0
votes
1 answer

Identity 2.0 User's UserRole always Null

So i'm having issues with Identity and UserRoles. I have inherited from the base classes, and then added some custom fields. The user object now has a person, which two other classes inherit from (Applicant and Reviewer). I have tried so much to…
Gweaths
  • 85
  • 11
0
votes
1 answer

Redirecting custom button URL based on User Role/User Public Group membership

I need to add some URL parameters in the Send Email button in Email related list in Case detail page. I have added a custom detail page button with execute javascript. Below is the button code. var loc; var uRoleId =…
MaxPyne
  • 17
  • 5
0
votes
2 answers

Can I associate attributes to the role in wso2?

Is there any way to associate custom attributes with a Role in wso2? similar to the way we assign claims for profile. I understand, we can associate Permissions to the user.
Dhananjay
  • 3,903
  • 2
  • 29
  • 44
0
votes
1 answer

Sonata | Symfony 3 | Configure routes in function of user roles

I try to configure routes in function of the user roles. This is what I did : The service : admin.group: ... calls: - [ setTokenStorage, [ "@security.token_storage" ] ] The Admin class : public function…
Aximem
  • 714
  • 8
  • 27
0
votes
1 answer

Rails Cancan: Defining Default Role on Signup

I've recently added roles to my rails application with CanCanCan (by enumeration)- but now I want to add a default role on signup. How do I go about doing this? Does it go in the controller or model? My User model: class User < ActiveRecord::Base …
zasman
  • 446
  • 1
  • 8
  • 28
0
votes
1 answer

How to assign a role in Laravel's default AuthController

I want to assign a role to user during sign up in Laravel 5.2 default AuthController, so how to do this if anyone idea? Here I have three tables users, roles and user_roles thanks My migrations: users_migration: public function up() { …
Rastagar
  • 183
  • 3
  • 14
0
votes
2 answers

ASP MVC 5 Windows authentication with custom roles and Active Directory

I have an MVC 5 application set up with windows authentication and my own custom roles table for authorization. This works fine if the user exists in my application database - username in my users table maps to the usernames in active directory. My…
0
votes
2 answers

create new roles in sql server 2008

I have created a database system for a cms for a news website. I want to have only 4 roles in my db system : Admin, Author, Editor and Guest ( who only read the web pages). But there are some pre-defined roles in every db system like sys and…
analia
  • 21
  • 1
  • 2
0
votes
0 answers

Unable to change group for a user alanning:roles

I'm using alanning roles for setting up roles and groups. I currently have a method that allows to change the role of a user and it works perfectly. I use similar syntax to set the group for a user and I don't get any errors on the console and it…
Emmanuel Henri
  • 153
  • 3
  • 27