Forum Discussion

dementad's avatar
dementad
Genius
11 years ago

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 ch...
  • premkumar's avatar
    11 years ago

    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