# Vision system function needs to use in the Perseptive

**URL:** <https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883>\
**Category:** Ignition\
**Tags:** ignition78, python, ignition80, scripting, perspective\
**Created:** [February 15, 2023, 12:18pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883 "2023-02-15T12:18:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adarsh\_Shelar](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@Adarsh\_Shelar](https://forum.inductiveautomation.com/u/Adarsh_Shelar)\
**Post date:** [February 15, 2023, 12:18pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883/1 "2023-02-15T12:18:47Z")

</div>

Hi connection.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0f4266babc4ce0bff85b6308b9e5c8cc225cd6a.png)  
Here I used some system function in the Vision where I can use the same system function in Perseptive or any alternate. method need to try with that function.

Thank you,  
Adarsh 💥

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 15, 2023, 12:26pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883/2 "2023-02-15T12:26:45Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo](https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo)

```auto
username	Either the username of the logged in user if authenticated, or "Unauthenticated" if an unauthenticated Session.

```

---

<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:** [February 15, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883/3 "2023-02-15T15:26:47Z")

</div>

You can also just directly reference the session properties, to avoid the overhead of the function call.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 15, 2023, 4:17pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883/4 "2023-02-15T16:17:36Z")

</div>

It depends on _which_ scripting area you're using, because the availability of arguments dictates the source your reference, but for most scripts you'd reference `self.session.props.auth.user.userName` (assuming a source of `self`). Inside of expressions you'd use `{this.session.props.auth.user.userName}`.

---

<div class="post-metadata">

**Author:** ![Adarsh\_Shelar](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@Adarsh\_Shelar](https://forum.inductiveautomation.com/u/Adarsh_Shelar)\
**Post date:** [February 16, 2023, 12:34pm UTC](https://forum.inductiveautomation.com/t/vision-system-function-needs-to-use-in-the-perseptive/69883/5 "2023-02-16T12:34:41Z")

</div>

**Thank you @cmallonee** 💥
