Khoros Atlas Logo

minilpiyukson21
New Commentator

How to get user name rank color display information via APIs????

You can select different colors to display user's name for the different ranks a user has. I have a custom author display component and I want to be able to bring this functionality into it but have no idea how to find that information in a way that I can use. Help! 

0 Kudos
2 Replies 2
Highlighted
Honored Contributor
Honored Contributor

Re: How to get user name rank color display information via APIs????

0 Kudos
Reply
Loading...
Valued Contributor
Valued Contributor

Re: How to get user name rank color display information via APIs????

@minilpiyukson21 

You can use community API v2 to find all the data related to ranks like color, icons, bold font, etc to build your own custom component

 

SELECT rank FROM users WHERE id = '8'

 


But I would recommend using a non-contract component in your custom component to fetch user details if it fits well in your requirement.

 

<@component id="common.widget.user-name" user="conv:5" />
or
<@component id="common.widget.user-name" user="conv:username" />

 





Happy to Help !!! give kudos if you like my solution & mark it as solved if it resolves your issue
0 Kudos
Reply
Loading...