Forum Discussion

bstojadinovic's avatar
3 years ago

Custom profile attributes tracking

We're storing some information on custom profile attributes that are located in the user's settings somewhere

- REST CALL -  /users/id/some_user_id_here/settings/name/custom_profile.course_1 .

We need to be able to make those custom rest calls from every user and also see all users that accessed the page and check their custom attributes.  Do you have suggestions on how this might work? We want to have this information in a DW.

5 Replies

  • Hi bstojadinovic , is the question here that the REST CALL you provided isn't working for you? If so it may be that you are  missing part of the call /restapi/vc/users/id/some_user_id_here/settings/name/custom_profile.course_1

    Could you please be clear with having the information in a DW?

  • Hi SyedSa 

     

    Thanks for the response. I'd like to know how to call these custom profile attributes to our data warehouse so we can see that data using the BI tool/Looker. We managed to handle custom tags, but how to do the same with profile attributes?

  • SyedSa's avatar
    SyedSa
    Moderator
    3 years ago

    bstojadinovic, this should grab you the custom profile attribute:

    curl --location --request POST '{hostname}/restapi/vc/users/id/{user id}/settings/name/{profile attribute}' \

    --header 'Content-Type: application/x-www-form-urlencoded' \

    --header 'li-api-session-key: {session key}'
     

    This call will return this response:
    <response status="success">    

    <value type="string">{payload}</value>

    </response>
     

    You can obtain a li-api-session-key value from:
    curl --location --request POST '{hostname}/restapi/vc/authentication/sessions/login' \

    --header 'Content-Type: application/x-www-form-urlencoded' \

  • You are welcome! Glad I was helpful!

    bstojadinovic If you found this response helpful, please mark it as accepted solution.