Forum Discussion

skylinegtr's avatar
9 years ago

Display users by user id using API

Hello,

 

I have 15 product expert users that I would like to display on the community home page.

Is there a way that I can display these users by user id using API? Any API code sample available that I can insert into a custom component? 

 

Thank you in advance.

 

 

  • Hi skylinegtr,

     

    You can also use OOB component to show user name with all its paramenter (left-mage,right-image,color,etc)

     

    <@component id="common.widget.user-name" user="conv:${user}" />
    
    Parameters: 	“user =”    [user_name] / [user_id]

    use this component for username and for avatar of user you can use avatar call :

    http://community.lithium.com/restapi/vc/users/id/<user_id>/profiles/avatar

     

    Regards,

    Mahesh

    If my post is helpful and answers your question, please give "Kudos" and "Accept it as a Solution."