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.

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.

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

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

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.