cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Esteemed Contributor

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
Highlighted
Honored Contributor

@IanAtJMP 
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