# Inicion de sesion de vision client

**URL:** <https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 9, 2023, 7:04pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854 "2023-03-09T19:04:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo\_javier\_reyes](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@Ricardo\_javier\_reyes](https://forum.inductiveautomation.com/u/Ricardo_javier_reyes)\
**Post date:** [March 9, 2023, 7:04pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/1 "2023-03-09T19:04:21Z")

</div>

How could I start the application with different users without having to log in to the application.

---

<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:** [March 9, 2023, 7:22pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/2 "2023-03-09T19:22:14Z")

</div>

You can't. Vision requires you to be logged in as _some_ user. You could auto login to a "guest" user with no permissions, perhaps.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 9, 2023, 7:47pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/3 "2023-03-09T19:47:15Z")

</div>

Many of the projects I maintain use the autologin feature to start the SCADA with a user with the lowest possible privileges, usually just viewing some main screen, but to do any actions or view other screens requires the user to login from within the application utilizing `system.security.validateUser()` and then writing to some tag to indicate more privileges (not my favorite way) or `system.security.switchUser()` which imo would be a better option as then you can use Ignitions built in security setup easier.

---

<div class="post-metadata">

**Author:** ![Ricardo\_javier\_reyes](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@Ricardo\_javier\_reyes](https://forum.inductiveautomation.com/u/Ricardo_javier_reyes)\
**Post date:** [March 9, 2023, 9:49pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/4 "2023-03-09T21:49:01Z")

</div>

I am new to ignition, and I don't quite understand how to use this script.  
Could you help me with an example?

---

<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:** [March 9, 2023, 10:03pm UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/5 "2023-03-09T22:03:27Z")

</div>

1. Set up auto login to a 'guest' user, with no/very restricted access.
2. Have a simple login popup window, with a text field for the username, a password field for the password, and a button to submit. On the button, you'll run [`system.security.switchUser`](https://docs.inductiveautomation.com/display/DOC81/system.security.switchUser), passing in the username and password from the text fields. If the user credentials were valid, you're now logged in as the appropriate user. If not, they'll get an error indicating a problem.

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 10, 2023, 11:56am UTC](https://forum.inductiveautomation.com/t/inicion-de-sesion-de-vision-client/70854/6 "2023-03-10T11:56:23Z")

</div>

If you're new, go through some of the Inductive University classes, they're free.

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/ignition-overview/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

A good look at 'Security in Ignition' should answer a lot of your questions about this topic.
