259
Views
4
Comments
Solved
How to filter users based on a particular role?
Question
Application Type
Reactive

Hi,

I want to get all the users which are assigned to a particular role, so that that the list contains only one role based on condition.

Can any one help me out of this.

Thanks in advance.

Jeevan Sai.

2025-03-19 01-45-51
Sandeep Kumar Kolli
Solution

Hello Sai,

You can use of User_Effective_Role Entity, you can get this by managing dependencies with System Module.

User_Effective_Role this will contain userId and RoleId so you cna filter roles easily based on your current application roles.

Refer the below screenshot 

Right side expression would be essentially your application Roles.



With Regards,

Sandeep.

2022-05-19 14-01-44
Varada Rajan

Hello Sai,

In Reactive web Applications using the javascript API would be useful to filter users based on the role,below link  can be useful in screen side filter of users : https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/Security

2021-06-26 17-42-52
Jeevan Sai Sabbavarapu

@Varada Rajan but this API will helps to know whether a particular user is having that role or not.

2025-03-19 01-45-51
Sandeep Kumar Kolli

This would be a better procedure to know whether particular is assigned to the user or not, instead using sole server actions .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.