Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not applicable

API V1 profile_name not working ... am I missing something?

According to the docs, I should be able to get the user's profile.name_first and name_last

https://community.khoros.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=U...

However, when I use:

https://[mysiteurl]/restapi/vc/users/id/[id]/profiles/name/profile_name or

https://[mysiteurl]/restapi/vc/users/id/[id]/profiles/name/profile_name.name_first 

the result is "success" but with no data. I have double checked to see that the profile first and last name IS set in the viewprofilepage page. 

 

<response status="success">
<value type="string"/>
</response>

 

 

Is there something I'm missing or is this a bug? 

1 Reply 1
Boss

@Inactive User 
Try below APIs

<#assign nameFirst = rest("/users/id/${user.id?c}/settings/name/profile.name_first").value />
<#assign nameLast = rest("/users/id/${user.id?c}/settings/name/profile.name_last").value />

Welcome ${nameFirst!""} ${nameLast!""}

Hope it will resolve it. 

Give kudos if you find my posts helpful or mark solution if it answers your query

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.