dementad
11 years agoGenius
List users having role
In the Community Admin, I can list all users having a specific role: roles->list users.
But I can't see a way to get that information using the RESTAPI. It seems I must list all users and then check for the role. Is there a more efficient way to get this information?
Hi,
You can get the list of users for a specific Role using the following REST API
http://community.lithium.com/community-name/restapi/vc/roles/name/[role_name]/users
The below example list all the users who are part of the Administrator Role.
/restapi/vc/roles/name/Administrator/users
Thanks,
Premkumar