Base solution for your next web application
Open Closed

How to create new user roles in .NET Core + Angular #9471


User avatar
0
optixdev created

We are using .NET Core + Angular:

  • How to create new user roles?
  • How to manage the users roles?
  • How to assign permission to the roles to access specific pages?
  • How to assign permission of roles specific <div> tags to show or hide certain tables and values?

Can you please provide us the code?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @optixdev

    You can already do those actions in the UI.

    How to create new user roles?

    You can do it Roles page.

    How to manage the users roles?

    You can manage it on Users page.

    How to assign permission to the roles to access specific pages?

    You can do it on Roles page.

    How to assign permission of roles specific <div> tags to show or hide certain tables and values?

    You can use IsGranted helper method on UI pages to check if a role has a specific permission or not and render related html part accordingly.