Hello,
For my application, I have a project savings table and for each project savings/datapoint, it has its own Business code (e.g. ABC/DEF/GHI etc...). So I would like for there to be a role for the user to be able:
To view all project savings/datapoint with the Business code of "ABC" only for example. Basically allowing the user to view the data based on a attribute.
How do I go about this? Thank you!
Hello Low,
There are 2 ways to set this up:
1. Using Outsystems Roles
You can learn more about Roles here.
2. Creating a User Permissions Table
Hope it helps!
Paulo Rosário
Hello Paulo,
Thank you so much for your suggestions! My idea and direction to tackle this issue is similar to your first suggestion which utilises OutSystem's roles. So I would most likely filter the aggregate used to display the data by checking the role of the user.
So basically:
1) Create a new role : ManagerABC
2) Filter the aggregate so that Manager ABC and view all data that has code "ABC"
This seems to be working however, the user with the admin role (Admin role should be able to see everything regardless of code) can only see those with code "ABC" too which is not intended.
These are the 2 filters that I am using. Did I do something wrong here? Thank you!
There are two ways to configure this:
1. Making use of Outsystems Roles
Each type of data should have a specific role that is mapped to an attribute.
Use the CheckRole function in the OnReady Event on the screen to confirm that the user has the rights required to see that data.
There may be a large number of Roles to handle depending on the quantity of attributes.
If your data is organized by screen, these roles can be used as permissions for that displays.)
From Phonedaddy