Forum Discussion

gleung's avatar
gleung
Mentor
12 years ago

Getting user role

Hi,

I am using the Users api to get infomation about specfic users. eg( http://community-url.com/restapi/vc/users/id/3) ,

however the reponse object does not contain 'user role'. 

Is there an endpoint where I can find out the role(Admin, moderator, etc) of a specfic user?

 

Thanks,

Gifford

3 Replies

  • gleung's avatar
    gleung
    Mentor
    12 years ago

    Thanks.

     

    Is there a way to get all the user info in one call? So that I won't have to make multiple calls just to retrieve basic user info (name, role, avatar)?

  • Make this call as restadmin
    restapi/vc/users/id/[id]

    But to get details, you have to make following call.

    E.g.
    restapi/vc/users/id/[id]/profiles/name/name_first