How Admin can give read, write access in the Browser ?

0
Hello, Can anyone helps me to give read, write access from the browser only, means an admin can see this all users and can create also , so can he will give read write access too?
asked
1 answers
1

Giving out rights for read or write access per data object is not directly possible in Mendix. This is always related to UserRoles through the connected ModuleRoles.

 

You can however configure your app with UserRole that you call RoleRead and RoleReadWrite.

These specific UserRoles can be added/removed from a specific User by the Administrator.

 

For example, if you have 2 modules: customer and orders.

Create 4 UserRoles in your project:

  • CustomerRead (give it access to the customer module with only read rights)
  • CustomerReadWrite (give it access to the customer module with read / write rights)
  • OrderRead (give it access to the order module with only read rights)
  • OrderReadWrite (give it access to the order module with read / write rights)

 

Then add a page in which the administrator can add/remove these roles to the users of your app.

answered