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

Grails Shiro LDAP User/Role Authentication: How/What to capture and store for reuse

So I need some help with the layout/structure of my project. I am making a website and so far I have a working login page which authenticates the user with Apache Shiro against an LDAP server and redirects the user to a splash page. Depending on the…
mjswartz
  • 715
  • 1
  • 6
  • 19
0
votes
1 answer

PHP - UserRole - Function - OOP

I am trying to make my own custom CMS, I can register users and can login aswel, Now I am trying to make a function for user roles, File: class.user.php function getUserrole() { $username = htmlentities($_SESSION['user_session']); $stmt =…
user4433485
0
votes
1 answer

Reset or recover a user's password by an admin using a username in SimpleMembership

I am working on an ASP.Net MVC 4 application where it uses SimpleMembership and I have two types of user one is normal user and an admin. I am trying to add a feature where an admin can reset a normal user's password just by entering a username and…
DoIt
  • 3,270
  • 9
  • 51
  • 103
0
votes
1 answer

Modify attribute value based on user role

I have a column 'created_by' in a table. Based on the role of logged in user I have to show either the id of the user or the role of the user. Suppose the id logged in user is a customer and the record was created by the user who has support role,…
user3075906
  • 725
  • 1
  • 8
  • 19
0
votes
0 answers

Admin and user control in a website

I'm new to ASP.NET and I am designing a warehouse portal. It has three users: admin, warehouse staff and customer service. I designed an adduser.aspx page where I add users and assign roles. I use dropdown list to select the type of user and then…
MAK
  • 1,250
  • 21
  • 50
0
votes
1 answer

Asp.net LoginView Rolegroups don't show elements

I'm using rolegroups at my Site.Master masterpage with Web Forms template. When I log in with some admin user, the first page shows the admin role content fine, but when I refresh the page or goes to other page, the elements in Rolegroups disappear.…
Rafael Trojack
  • 209
  • 1
  • 5
  • 12
0
votes
1 answer

Using custom name of `name` field of Zizaco/entrust Package

I am working in a project that has a large postgreSQL database. The previous project was developed in Java from scratch. We are now developing that in Laravel. The previous system had user management system similar to Zizaco/entrust. So, we used in…
Nasif Md. Tanjim
  • 3,862
  • 4
  • 28
  • 38
0
votes
1 answer

Moodle: How to Assign One Teacher for One Course only

I want to assign one teacher for one course only - specific teacher for specific course and that course enrolled students to manage. How can I do from Admin Panel? Kindly suggest.
Aditya P Bhatt
  • 21,431
  • 18
  • 85
  • 104
0
votes
1 answer

Why can't I add SQLUserAgentRole to "sa" user on msdb?

I'm trying to schedule an sql query to run daily. For that I need (according to this) to use a user with the SQLUserAgentRole database role. So I've tried to add the SQLUserAgentRole to the "sa" user on the msdb database but I get the error 15405:…
belyid
  • 841
  • 2
  • 12
  • 28
0
votes
2 answers

Migrations C# MVC ASP.NET

I would like to have a simple explanation about this seeding. This code works. protected override void Seed(RMQ.Models.ApplicationDbContext context) { var userStore = new UserStore(context); var userManager =…
Aizen
  • 1,807
  • 2
  • 14
  • 28
0
votes
1 answer

Wordpress: Advanced Custom Fields Select Users with higher role levels not possible

I have a ACF Relational User Field where on can select a user. But, it only displays the users with a lower role level. I need to be able to choose at least same level roles. Is this a WP thing or ACF? Anyway to change that behaviour?
thgie
  • 2,367
  • 1
  • 18
  • 28
0
votes
1 answer

Parse Users with Roles

I'm try to get my head around this concept of how best to implement this via Parse. Personal Training App A studio get the app to manage their clients and their trainers. Hence we have roles. The Studio Manager This user can look at all the data…
DogCoffee
  • 19,820
  • 10
  • 87
  • 120
0
votes
1 answer

Limit a Wordpress user to see only pages and posts

How to limit a WordPress user to see only pages and posts in his panel? I want other menus like Appearance, Plugins, Settings, ... be hidden to that user. How to do it? I've searched a lot about this, but most of the results are talking about…
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
0
votes
1 answer

Devise, Roles and Simple Form

I'm using devise, simple form and role model in my rails 4 app. I have a user model that devise works with the user model, and i have a separate profile model which contains all the editable functions that a user will interact with. I have added…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

New user roles typo3 neos

I need to add new user roles, such as "TYPO3.Neos:Creator" Typo3-neos Currently supported roles:"TYPO3.Neos:Editor", "TYPO3.Neos:Administrator". How can I do it?
omelandr
  • 135
  • 1
  • 7