# User Login Time

**URL:** <https://forum.inductiveautomation.com/t/user-login-time/62174>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 21, 2022, 7:49pm UTC](https://forum.inductiveautomation.com/t/user-login-time/62174 "2022-07-21T19:49:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trevor\_Nelson](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Trevor\_Nelson](https://forum.inductiveautomation.com/u/Trevor_Nelson)\
**Post date:** [July 21, 2022, 7:49pm UTC](https://forum.inductiveautomation.com/t/user-login-time/62174/1 "2022-07-21T19:49:37Z")

</div>

Is there a way to get the time that a user logged into your application?

---

<div class="post-metadata">

**Author:** ![JohnIrving](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/johnirving/32/37638_2.png) [@JohnIrving](https://forum.inductiveautomation.com/u/JohnIrving)\
**Post date:** [July 21, 2022, 7:52pm UTC](https://forum.inductiveautomation.com/t/user-login-time/62174/2 "2022-07-21T19:52:44Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/3862dfe7d637de188e450ddf075f9b38679dc02e.png)  
This perspective property might work.

From the mouse over description it is a timestamp of when the user logged into Perspective from the identity provider.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 21, 2022, 7:54pm UTC](https://forum.inductiveautomation.com/t/user-login-time/62174/3 "2022-07-21T19:54:12Z")

</div>

The [Perspective Event Types Reference - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+Event+Types+Reference#PerspectiveEventTypesReference-SystemEvents) has the **onStartup** event. The bit you're interested in is

> - Fired on a **view** when the view is loaded into the browser window.

You can create a script to write to a database on the main view of your application.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [July 21, 2022, 8:44pm UTC](https://forum.inductiveautomation.com/t/user-login-time/62174/4 "2022-07-21T20:44:10Z")

</div>

What about using auditing?  
[https://docs.inductiveautomation.com/display/DOC81/Audit+Log+and+Profiles](https://docs.inductiveautomation.com/display/DOC81/Audit+Log+and+Profiles)
