Post Closed
33
Views
5
Comments
Role based access control not working.
Question

I have created two new users and assigned employee role to user1 and Manager role to user2. After login the application how can I restrict the screen access based on these users role?

(e.g: Employee and Manager both the users will have access the screen1, but the Screen2 Manager only have a access rights)

 

Based on that role how can I restrict the functions also. I have attached the steps that was followed in OS in the slide.

This is a repeated post... 

https://www.outsystems.com/forums/discussion/92002/role-based-access-control-not-working/
Please, delete one. 

Best regards, 

Ana

Hello,

Role based access control for screens is quiet simple in outsystems.

In the property section of your screen2 just uncheck the employee role then it will only be accessed by manager role.

example:

Hope this helps.

Anees


Hello Balasubramaniam s,

As suggested by Mohd Anees Mansoori, you must maintain the access to screen as per specific role. And to check the role before executing a function you can use CheckRole action present in roles created at the starting of any function and if the respective role should not perform that function you must end with error message that you do not have permission to execute.

Kindly, let me know if you need any demo regarding your scenario for better understanding.

Thanks & Regards.

There is a course for this topic. Have you watched this one? If not please do as this will answer all your questions. 

https://learn.outsystems.com/training/journeys/role-based-security-625/demo-how-to-control-authorization-in-logic/o11/2322

Double post I closed this one.

Please redesign from posting same question multiple times. Keep the discussions focused.