Fetch users info with role_type (role_restriction) filter | Community
Skip to main content

Fetch users info with role_type (role_restriction) filter

  • February 25, 2021
  • 2 replies
  • 0 views

I am developing an support app through ZAT framewok. Once app is uploaded, and admin purchases that with per agent rate. While purchasing, admin can provide role or group restrictions of users. Is there any direct api to get the UserIDs of all eligible users from group and role restriction for the app ?

One way of doing this is to fetch all the user from group restriction and then filter the user from role restriction, this is too lengthy. Please help with possible short and sweet solution.

2 replies

Greg29
  • February 25, 2021

Hi Hitesh! You could utilize the Search API to accomplish this by passing in the group and role keywords. Our search reference for users will help you with this. Let us know if you have any questions!


  • Author
  • February 26, 2021

Thanks Greg,

I have explore the API, but when I fetch data from app installation api which gives me group restriction and role restriction. I can fetch user filtered for group restriction with list user for group.

Now role restriction gives me list of id's, here I am not able to find these ID's in user data. And not found any mapping like role (agent, admin etc) and id's from role_restriction.

can you help me in this?