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
25
votes
4 answers

Why did PostgreSQL merge users and groups into roles?

From the PostgreSQL docs: The concept of roles subsumes the concepts of "users" and "groups". In PostgreSQL versions before 8.1, users and groups were distinct kinds of entities, but now there are only roles. Any role can act as a user, a…
KajMagnus
  • 11,308
  • 15
  • 79
  • 127
25
votes
1 answer

Alter default privileges for a group role in PostgreSQL

I have created two group roles in Postgres 9.2: one is called admins and the other is called readers. The idea is very simple: admins create tables and readers have read access to these tables. After granting privileges to both group roles…
juliomalegria
  • 24,229
  • 14
  • 73
  • 89
24
votes
2 answers

When adding an Admin to the Application, I get the error message NAME is not a verified user - even though the user is

I have an issue with adding a developer colleague to the application as an administrator (it doesn't matter if he's added in a developer role, the error stays the same). Even though the colleague has a verified account with Facebook that he uses,…
Bjoern
  • 458
  • 1
  • 4
  • 9
24
votes
3 answers

How do you access the roles of the currentItem from a listview in QML?

I'm trying to access a role from a ListView in QML. Essentially, I have this in my QML: ListView { id: myId model: myModel delegate: Item { Text { text: model.text } Text { text:…
Jack Benson
  • 645
  • 2
  • 6
  • 8
24
votes
4 answers

Symfony2 - array to string conversion error

I've read the other subjects but it doesn't solve my problem so: I've got this ->add('role', 'choice', array( 'label' => 'I am:', 'mapped' => true, 'expanded' => true, 'multiple' =>…
user2394156
  • 1,792
  • 4
  • 16
  • 33
21
votes
4 answers

Keycloak User Roles missing in REST API

I would like to ask, if somebody knows, why there are no roles within the user details in REST ADMIN API request. I saw some posts dealing with this topic, but there were either no clear answer or they propose to use keycloak-admin-client, but that…
troger19
  • 1,159
  • 2
  • 12
  • 29
21
votes
9 answers

Find out if someone has a role

I made a simple quote bot for a server, but the admin only wants mod+ people to be able to add quotes to avoid spam. I went to the documentation and did everything, but I can't get this to work. Here's what I have: //other code else if (command ===…
R. Gillie
  • 1,283
  • 2
  • 12
  • 22
21
votes
8 answers

When are user roles refreshed and how to force it?

First off, I'm not using FOSUserBundle and I can't because I'm porting a legacy system which has its own Model layer (no Doctrine/Mongo/whatsoever here) and other very custom behavior. I'm trying to connect my legacy role system with Symfony's so I…
netmikey
  • 2,422
  • 2
  • 28
  • 35
19
votes
14 answers

What is the best approach to create a role based web application?

I need to create a web application for a School and I need to have different roles such as: Student Professor Admin I need to have a login at the beginning and then after entering the credentials the application needs to redirect to the home page.…
Diego Ramos
  • 989
  • 4
  • 16
  • 35
19
votes
3 answers

Verifying roles & authentication with Passport.js

So I'd like to make some routes in an API that will show different data based on the user role, defined in MongoDB. Here's a sampling of what I have right now, it works... router.get('/test', passport.authenticate('bearer', {session: false}),…
user393219
19
votes
2 answers

How to create roles and add users to roles in ASP.NET MVC Web API

I have a .NET Web API project that users the individual accounts. I can register users fine using the standard template AccountController. However, I now want to set up roles and add users to roles depending on the type of user. There are no roles…
Ben Drury
  • 1,356
  • 2
  • 16
  • 34
18
votes
3 answers

ASP.NET MVC Roles Authorization

I want to make the roles default for my controller class to "Administrators, Content Editors" [Authorize(Roles = "Administrators, Content Editor")] I've done this by adorning the controller with the attribute above. However, there is one action…
Mr Grok
  • 3,876
  • 5
  • 31
  • 40
18
votes
6 answers

ASP.Net MVC 3 Redirect UnAuthorized User not to loginUrl

i have a project using ASP.Net MVC3 and using membership for roles. i use authorize in every controller. eg: [Authorize(Roles = "Administrator")] public ActionResult Index(string q, int i) { return View(model); } if someone…
18
votes
1 answer

Error while creating test user on Facebook "The ability to create test users is disabled temporarily"

While creating a test user in my app in Facebook developer, I get this error: The ability to create test users is disabled temporarily Is the issue from Facebook servers or the issue from my side?
Rahul Mishra
  • 321
  • 2
  • 9
18
votes
3 answers

Is it possible to assign multiple roles to a user or group in Azure AD?

When I add an appRoles section to my application manifest in Azure AD, I can assign users and groups to roles in the management portal. "appRoles": [ { "allowedMemberTypes": [ "User" ], "description": "Can read…
MvdD
  • 22,082
  • 8
  • 65
  • 93