# View Only users and switching users via scripting (plaintext password?)

**URL:** <https://forum.inductiveautomation.com/t/view-only-users-and-switching-users-via-scripting-plaintext-password/78457>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [August 28, 2023, 4:18pm UTC](https://forum.inductiveautomation.com/t/view-only-users-and-switching-users-via-scripting-plaintext-password/78457 "2023-08-28T16:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcui](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcui/32/51446_2.png) [@kcui](https://forum.inductiveautomation.com/u/kcui)\
**Post date:** [August 28, 2023, 4:18pm UTC](https://forum.inductiveautomation.com/t/view-only-users-and-switching-users-via-scripting-plaintext-password/78457/1 "2023-08-28T16:18:13Z")

</div>

I have a View Only (Guest) user in Vision that I have setup for Autologin.  
This user will be persistently logged in, and when another user logs out, it will swap to this user (I do not want to go to the normal login page).

Is there a way to securely use switchUser without having to plain text the password in the script?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 28, 2023, 4:35pm UTC](https://forum.inductiveautomation.com/t/view-only-users-and-switching-users-via-scripting-plaintext-password/78457/2 "2023-08-28T16:35:02Z")

</div>

Basically, no.

But anyone you're letting into the designer has remote code execution capability on the Ignition server anyways, so it's _somewhat_ a moot point; if you don't trust someone, don't let them into the designer at all.
