Skip to main content
Sep 2, 2021 7:00 PM UTC
Question

Switch Logged in Users through script

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.

6 replies

Sep 3, 2021 12:51 PM UTC

What is the use case for this?

AhsanKhanAuthor
Sep 3, 2021 1:46 PM UTC

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.

Sep 3, 2021 1:48 PM UTC

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.