Forum Discussion

Myko_P's avatar
Myko_P
Expert
7 years ago

Custom component which shows the list of users with the specific role

Hi! I got the custom component wich shows list of the users with the specific rank only. How can I customize it to show the list of the users with the specific role only? Tried to change the first ...
  • TariqHussain's avatar
    7 years ago

    Myko_P - 

    It should be roles.name not role.name.

    <#assign modId_request = rest("2.0","/search?q=" + "SELECT id FROM users WHERE roles.name = 'Expert'"?url).data.items />