UserManager.GetRolesAsync() method
i want to add user role to claims
i want to add user role to claims
In my ASP.NET Core MVC project, I have this scenario: a manager can do anything in the web application, you can call it super manager, and there is only one user. This “super” manager can add other managers that are more restricted, for example these managers cannot create users of type manager, or cannot see some information.
Am I able to hide certain menu items in an asp:Menu control based on role?
I want to create a view that has different displays according to the role the user is in.
What is the code for determining if a user is in a role?
At our company network, the roles in Active Directory(AD) are not appropriately assigned for my application. So I created a simple table in my database mapping all the users in the AD and their roles. There is literally only two columns in this table, user and role.
I currently have a project that I seem to have ran into an issue regarding Roles and thought I would get some opinions on how to best handle the problem.
I need to pass data to a variable in my master page each time a page is loaded.
No one work’s, the only one who I managed to works is this:
I am currently looking for some advise & help to how I can avoid people from accessing pages unless they are (1) Logged in , (2) Have the correct role to visit that page.