Hi.
I am in the process of looking at an API and I see the following two calls:
API.Users.Roles.getAllRoles();
API.Admin.Roles.getAllRoles();
What I would like to know is how each of these call is used within
the context of a Web program. Since both Admin and Users are properties,
what exactly is the get; set; doing? How does the c...
My vision includes having globally defined roles which are pushed from AD but also I'd like to be able to add to Context.User.IsInRole("ATransientRoleForThisDocumentOnly") and have that work...
I thought about pushing roles into the Thread.CurrentPrincipal and passing in Context.User.Identity and an array of roles but I was concerned a...
hi guys,
Just wanted to ask to how is User management and Page access based on user role is implemented?
1]Suppose page/feature access is to be given based on type of user eg: Sales,Marketing,Engineering .So we end up with something like
if(CurrentUser.IsInRole("Sales"))
{
//for - sales feature
}
else
{
// etc..etc.. ...
I'm looking at creating a decentralised role-management system which integrates with JEE roles. Does anything like this exist?
Example use cases:
System A is a limited-access system which uses corporate roles. John joins a team, and requires SYSTEM_A_READONLY to perform his function. He logs on to the decentralised role-management syst...
Is it possible with Postgresql to create a database which has 2 users which act like owners to the database?
I can create a group role and add both users to that group, and then make the group the owner of the database, but this requires both users to be have to manually set their role on every connection to make any tables they have cr...
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 otherwise very secure detail about the user (for the purposes of this question, let's say ...
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 |
| 1 | 3 |
| 2 | 2 |
| 3 | 1 |
assuming that role w...
The application in question is a fairly extensive with many different types of access roles (read Customer Service, HR, Admins, etc etc). Tiered access, so each role inherits the access below it, so HR has Read Only, CS has edit abilities, Admins full control. Menu bars and buttons enable/visible attributes are controlled by an outside a...
I'm developing a custom plugin in PHP so existing plugins are not usable. What I want to achieve is that I want to display different url within a post for some users . For users that are registered in wordpress, contacted me and are 'approved'. I want to set up this extra user profile field so I can use this field in a condition. So gues...
How would I query MySQL database to return roles that are still not assigned (like available to him).
With table user_roles:
|user_id|role_id|
| 1 | 1 |
| 1 | 2 |
| 1 | 4 |
| 1 | 7 |
How can I query roles table to return role name and id of all the roles that are not assigned.
role_id: 3,5,8,...
...
I have a membership web application. A user is either an
administrator or a guest user (only 2 roles)
I have an admin folder and a guest folder in this application. I want
administrators to access both folders and guest not to access Admin folder.
I am not using the .net member/role/profile framework. What's the
easiest way to secure ...
Hi everyone,
This might be a pretty basic question, but how do you add new users to the aspnet_Users table in a ASP.Net 2.0 app?
I know I could do it using a SQL script, and being mindful of the associations, but I know I've seen a graphical interface for it... I can't find code for adding new users in the web app I'm maintaining (it ...
Similar to this question, I would like to know how to generate all GRANT statements issued to all roles in a set of schemas and a list of roles whose names end in "PROXY". I want to recreate statements like:
GRANT SELECT ON TABLE_NAME TO ROLE_NAME;
GRANT EXECUTE ON PACKAGE_NAME TO ROLE_NAME;
The purpose is to help migrate from a devel...
I'm using WCF RoleService (I built a custom role service on top of it) to get a list of roles for a given user. What I'm wondering is, should I be setting the FormsAuthenticationTicket's UserData property (when it's created) with these roles on the server side?
Note: I guess it doesn't make sense for a client application to do this (I'...
Guys,
When I create a custom role provider by inheriting from RoleProvider, I created a method
called public override string[] GetRolesForUser(string username) .. However, when I try
to use this Service Reference all I have access to is GetRolesForCurrentUser(). It works
and calls my method behind the scenes ok. As in, GetRoleseForCurre...
Hi again,
authentication via LDAP works like a charm, however, when I assign a role to a user and secure a page in the requestmap (like /books/show/** and ROLE_USER) this only works for local-only users, not for users authenticated via LDAP. (IS_AUTHENTICATED_FULLY works, though)
How can I fix that?
...
I want to add users in same role in more than one database. However the role can/cannot be present in all the database. How can i check if the role exists in database and if it does add users in that role?
e.g.
IF role exists
BEGIN
Add user in role
END
...
Consider, for example:
public interface IStaff
{
FullName name { get; set; }
EMailAddress email_address { get; set; }
SocialInsuranceId ssn { get; set; }
PositiveInt age { get; set; }
Address home_address { get; set; }
}
For some users, the viewmodel will only require name and email_address.
Others may have a view...
I am trying to drop user from role in several databases. It is not sure that user can be in same role in all the databases. How can i check if the user is in the role and if it is drop the user from the role.
e.g.
IF user exists in role
BEGIN
drop user from role
END
...
Hello!
I am somewhat familar with the LoginView control and understand how to use it to create say a read-only version and edit version of one page. The page then displays different depending if you are in a "readers" role or you were granted "editors" role membership.
Works nice!
Now what if for example editor1 opened the form and beg...