Article - CS293828

How to retrieve User Properties using a JavaScript service in ThingWorx Platform

Modified: 30-May-2023   


Applies To

  • ThingWorx Platform 7.3 to 9.3

Description

  • Getting User Properties within a Service Returns undefined
  • The following code was used to retrieve a property of the current logged in user but it failed to work:
    • var currentUser = Resources["CurrentSessionInfo"].GetCurrentUser();
      var result = currentUser.property1;  
This is a printer-friendly version of Article 293828 and may be out of date. For the latest version click CS293828