According to the docs, I should be able to get the user's profile.name_first and name_last
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?
Solved! Go to Solution.
@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.
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!