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

"FATAL: database does not exist" on postres, login is not working through app

I have these three steps bellow which I am executing every moment that I need to create a new environment for my app, the step 3 is just part of code... On the first step I create the database, second step I make the Roles and Users, and at the end…
Thiago C. S Ventura
  • 2,448
  • 1
  • 29
  • 43
1
vote
1 answer

How to translate role in Drupal?

If I want to translate the role to other language, how do I do it? I can change that to other language as the default but I would like to use English so I don't have to deal with UTF8 issue in my code with Asian charactors. if(in_array("administer…
Hao
  • 6,291
  • 9
  • 39
  • 88
1
vote
0 answers

WCF and forms authentication

I have a Restful WCF webservice. I want to lock it down with Forms Authentication and specify what roles the user needs to be in the call the web method. Cheers, Chris.
Chris
  • 163
  • 1
  • 1
  • 10
1
vote
1 answer

Getting the user Role

I have the Entities User (implements UserInterface which has a many to many relation to the Entity Role (implements RoleInterface). My Project needs the ROLE_ADMIN after Login, otherwise it will return a AccessDenied Error. Furthermore I added a…
ChrisS
  • 736
  • 2
  • 8
  • 21
1
vote
0 answers

How to represent ASP.NET controls differently for different roles according to best practices

On our project we use ASP.NET Web Forms, Web Forms MVP. All data are getting from WCF service. All roles are handled by the noted service (e.g. Manager, Finance, etc.). We need to introduce role based representation to our UI. To handle service…
1
vote
2 answers

Grails findAllByRole() error

I am trying to send email to all users with admin role when list() action has been called. Inside my list method I put the following code: def admins = User.findAllByRole("ROLE_ADMIN") //def approverEmails =…
1
vote
1 answer

How does the web container know about the role of the user

I am very new to web-app development and its security and trying to understand things around. Everywhere I look for implementing security in my webapp they ask to use declarative security. For example in tomcat I can declare the roles in the…
1
vote
3 answers

Yii Role Based Access Control

I generated entity and model, then a CRUD for it using Gii. Default access rules say that delete action can do just users with admin role. By default we have 2 users defined in UserIdentity.php: admin/admin and demo/demo. Demo is common user and…
Factory Girl
  • 910
  • 4
  • 18
  • 29
1
vote
2 answers

Forms Authentication with Sitemap and asp:Menu control

I have a site with 2 sections - one for customers and one for admins, in essence. Each section is in its own directory with its own web.config and sitemap. Security and access works fine. When I am logged in as admin, I want to see menu items that…
cdonner
  • 37,019
  • 22
  • 105
  • 153
1
vote
1 answer

Can I use a ViewBag value to determine useable functions?

So I am currently using a ViewBag set in the login to determine if they can see admin only stuff. This is done this way because Roles.CreateRole, Membership.CreateUser and Roles.AddUserToRole is disabled because we use ModelFirst ASP.net. public…
user2107630
  • 75
  • 2
  • 9
1
vote
1 answer

assign user roles and rights to a blog in blogengine programatically

I am looking into blog engine and would like to be able to setup a blog for every user in my asp.net membership provider. This is easy to do, although setting up the permissions is not so simple. Although this is not a great solution as far as i can…
Paul
  • 693
  • 1
  • 10
  • 25
1
vote
2 answers

Sitecore privileges on users with multiple roles

Lets say I have users imported from active directory and I have only read only privileges on AD roles (I still can add my sitecore roles on top): every user is in a generic domainuser role I have other roles, for instance budgetviewers I have a…
eloycm
  • 404
  • 2
  • 12
1
vote
1 answer

Combination of roles in Episerver

I have a site where our customers log in to see their own data. Each customer must only see their own data (of course), and different users will have access to different pages within one customer. In addition - the editors must see all data. I want…
Niklas Wulff
  • 3,497
  • 2
  • 22
  • 43
1
vote
1 answer

asp.net forms authentication with Role

I have a login screen that requires a username/password. I am using ASP.NET's Membership and Role tables that is part of ASP.NET to store info when the user initially registered. Once the user logs in with the appropriate role, then direct them to…
Nate Pet
  • 44,246
  • 124
  • 269
  • 414
1
vote
1 answer

System.Web.Security.Roles.GetRolesForUser(currentUser.Identity.Name) just one time works true

in an internet mvc 4 project, when run the project in debug mode,and login to application,the role for user wich was assigned before will recognized. the function that i use for getting user roles is…
1 2 3
99
100