Exposing user details to JS

In our projects we are currently looking at how we can improve our solutions to be more adaptive to users, specifically looking at how we can make changes to improve the experience with say dyslexia or varying forms of colour blindness.

Now the bodge solution to this is to offer the user an option to pick from a dropdown on the site that we inject, however it'd be great if a user could specify in their profile settings these requirements and then in the JS be able to access a User object which contains their basic details along with any of these other settings such as additional requirements they have that we can catch in our code to provide those necessary changes.

So could we get:

  1. Settings in the user profile where they can include additional needs they have
  2. A user object exposed in JS that we can access this detail, along with the other basic details (name, phone, email)
Parents
  • Thomson Reuters Thomson Reuters staff member

    Ryan McDonough I think I'm missing something here... We have a User endpoint which effectively gives you the entire user object? Is that not sufficient for your use case? Did you want something different?

    You can't add custom attributes, but you could easily twist some of the preexisting ones, (i'd think under the 'about me section' in the UI, would be the most appropriate):

Reply
  • Thomson Reuters Thomson Reuters staff member

    Ryan McDonough I think I'm missing something here... We have a User endpoint which effectively gives you the entire user object? Is that not sufficient for your use case? Did you want something different?

    You can't add custom attributes, but you could easily twist some of the preexisting ones, (i'd think under the 'about me section' in the UI, would be the most appropriate):

Children
No Data