Skip to main content
1-Visitor
September 2, 2021
Question

Switch Logged in Users through script

  • September 2, 2021
  • 1 reply
  • 2138 views

Hey guys, I am wondering how I go about programmatically logging in a User using some kind of known information that correlates with that user.

1 reply

22-Sapphire I
September 3, 2021

What is the use case for this?

AhsanKhan1-VisitorAuthor
1-Visitor
September 3, 2021

Hey thanks for the reply, I want to have 2 users in thingworx and depending on which language someone picks I want to log them into a certain user so their language preference appears.

22-Sapphire I
September 3, 2021

You can't just set their Language Preference in their actual user?

The other way to do it, is to load the language preference upon a choice vs. switching users.

I think that is better than logging in another user automatically which has potential security concerns.