I have checked asp net-zero document for role-wise change display screen based on roles permissions but in asp net-zero, A user can have zero or more roles. If a user has more than one role, the user inherits a union of permissions of all these roles.
but I want a dropdown to select the role and based on selected roles permitted screens for users.
Related
I’m working in a process to delete roles for several users (500).
I did a process, but I’m seeing it isn’t working well. Only select the checkbox Role, if it is in the beginning.
I’ve created a DataTable, This DataTable contains base information with user_id, my key field to find this particular role and delete it.
In this process, I need to access each user to browse his roles. All roles change according to the user.
My problem is how can I browse the (web table) roles, find and select the correct role, through its checkbox.
Here an image with three cases that could be appears:
Is there a way to interrupt login with a option menu asking for role in a system with multiple roles for user.
For example, User can login under company profile or individual profile, so we would want to filter based on the role the user select. The system have one user with multiple roles.
I have a requirement in which I have to give feature so that for perticular user can select the roles from drop-down . Roles will be in database. And I have to map that role with the spring Security authentication.
Eg- If there is two roles Admin and User in database. When Login I should be able to select user from drop-down and whole application should run on the basis of that role. If I select Admin then only admin should be mapped ,if I select User then user should be mapped.
Please help in that.
Thanks,
Please am using Play authenticate play framework and am trying to create many roles and how to create different signup and login form for each role i created.
You don't have to create different signup for every role. Role is assign to user after the user get created. Assigning of role should be handle by admin and super user. So I would suggest you initially don't assign any role or give the lowest priority role. And then make the user ask the admin for a particular role.
But if you really want to assign user a role during sign up you can add a dropdown field in your form which contains the values of all the roles and assign the role while creating the user.
I hope this answer your question.
I am creating a asp.net mvc 4 website.
Requirement is -
There are roles given for each user for this site.
Also there is table specifying which all tabs/views a role can have access to.
Based on user's role & view/page he/she is visiting, disable or enable all controls on that view/page.
Eg.
User with Account role don't have access to Search & View page. For this user these 2 pages should show all controls in disabled state.
User with Admin role have access to Search & View page. For this user these 2 pages should show all controls in enabled state.
Any solution for this?