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

create role statement causes ora-01031 insufficient privileges

I am using TOAD for Oracle and connecting to an 11g database. I have a user who has the create role system privilage designated by a role association, however when I run the statement: create role myNewRole; I get the error: ora-01031…
user1567453
  • 1,837
  • 2
  • 19
  • 22
1
vote
0 answers

Two different user groups from database with devise and rolify

I'm using Devise and Rolify gem. How to add a role to different user groups after registration? In my database I have "group" field which contains e.g. foo and bar strings. For foo I would like to add :foo role and for bar - :bar role. I would like…
1
vote
1 answer

Assign role to user at each login of a FormAuthentication login page in ASP.NET?

I'm having trouble understanding how the Role mechanism works with ASP.NET. I have a Microsoft SQL Server database where everything is already set up and I don't want to add/remove/modify the tables. There is a field in the "Users" table that…
gilgha
  • 55
  • 1
  • 7
1
vote
1 answer

Using CanCan to assign permissions to roles

I have a rails application where I have set up a table: users another table: roles and finally a join table: user_roles where a user may have many roles, but a role belong_to_and_has_many :users This has allowed me to create new roles and then,…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
1
vote
0 answers

is possible to define mi own custom Roles with custom permission with Servicestack?

I'm working on a project with ServiceStack and wondered if it was possible to define a custom Role with custom permissions? This is because I was reading the ServiceStack Authentication and authorization and reading the repositories so that I can…
rr7
  • 163
  • 2
  • 12
1
vote
1 answer

Different registration forms for different roles. FOSUserBundle

I'm absolutely new of Symfony, and I'm trying to implement a registration form that works only with invitation but that can redirect two different forms for two different roles. In practice if I send an invitation for an USER_TYPE1 role the client…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
1
vote
3 answers

Include admin role in users table from roles table

Is there a way to query users table like this: | id | username | ----------------- | 1 | user1 | | 2 | user2 | | 3 | user3 | and user_roles table: | id_user | id_role | --------------------- | 1 | 1 | | 1 | 2 | |…
LukeP
  • 10,422
  • 6
  • 29
  • 48
1
vote
1 answer

How to implement roles in ASP.NET using existing AD groups

I'm trying to implement some role-based functionality in my web application (.NET 4.0.3) so that I can control what menu items users can see based on their roles, either Administrator or User. I'm simply using existing AD groups to administer the…
Steven Manuel
  • 1,898
  • 1
  • 18
  • 22
1
vote
1 answer

Add Additional User Roles to Roadkill Wiki

I am using Windows Authentication for Roadkill Wiki. Has anyone attempted to add additional user roles in Roadkill Wiki for fine grain access control? If so, do you have any guides to help with this. Cheers.
1
vote
1 answer

ASP.Net MVC 5 - Authorization using Roles error

I have created an ASP.NET MVC 5 project. In one of the controllers I am using, [Authorize(Roles = "Admin")] for accessing the Index action, which should Authorize only the members of Admin role to access it. However, when I run my application I…
1
vote
1 answer

role-based methods for one web service?

I am trying to set up a (for now) really simple web service. By simple, I mean it only has a small amount of actual work to do on the code-side. It only really has one method/function: the client sends a user login, and the service responds with an…
Anthony
  • 36,459
  • 25
  • 97
  • 163
1
vote
0 answers

"The Role Manager feature has not been enabled." in web.config

I have an MVC4 application with the models and the migrations in a separate project, which is a class library. I have this in my seed method: protected override void Seed(BDOleoTorres.Models.OleoTorresContext context) { if…
CesarMiguel
  • 3,756
  • 4
  • 24
  • 34
1
vote
1 answer

ASP.NET Web Application Authorization using ADFS Claims

I have put together a dynamic data web application using ASP.NET. I have also put together some classes for an AuthorizationManager. The one thing I'm unsure of is how to plug this into the web app to make it so only users in a specific role based…
Skrubb
  • 531
  • 1
  • 6
  • 25
1
vote
2 answers

Add Roles dynamically in Symfony2

I have a question about Symfony2, I Hope someone could help me. I'm developing an application where the Administrator user has to be able to create new roles with new privileges. In other words, the app/security.yml file will change every time the…
juansneak
  • 37
  • 2
  • 6
1
vote
1 answer

ASP.NET MVC 4 Provide different privileges for users on different pages

Let's say I have a ASP.NET MVC 4 application. I need to provide different privileges on different pages for same users. For example, The same user could be an administrator on one page and a guest on another. MVC by default provides system wide user…
Andrew
  • 13
  • 7