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
  • Peter Simpson So for this I'm talking about something which doesn't require calling the actual API, more than in the same way that I can access in the global scope on any page:

    I'd like to be able to access say: CurrentUser and be able to get CurrentUser.FullName CurentUser.Email

    Unless the endpoint you're talking about is a .action endpoint I can call from just standard JS without having to get an API key for the current user?
     

Reply
  • Peter Simpson So for this I'm talking about something which doesn't require calling the actual API, more than in the same way that I can access in the global scope on any page:

    I'd like to be able to access say: CurrentUser and be able to get CurrentUser.FullName CurentUser.Email

    Unless the endpoint you're talking about is a .action endpoint I can call from just standard JS without having to get an API key for the current user?
     

Children
No Data