Public
Esteemed Contributor

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! 

 

Thanks

4 Replies 4
Honored Contributor

@IanAtJMP - In Khoros, we dont have user role color but have rank color.

Thanks!

Esteemed Contributor

@Payal that's what I meant, sorry. Correcting it now.

Honored Contributor

@IanAtJMP - You can use the following API call to get the user rank color:

SELECT rank.name, rank.color FROM users WHERE id = '[user.id]'

Thanks!

Esteemed Contributor

Thanks!

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.