# Session properties issues

**URL:** <https://forum.inductiveautomation.com/t/session-properties-issues/96633>\
**Category:** Ignition\
**Created:** [September 30, 2024, 8:15pm UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633 "2024-09-30T20:15:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pappu\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Pappu\_Gupta](https://forum.inductiveautomation.com/u/Pappu_Gupta)\
**Post date:** [September 30, 2024, 8:15pm UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/1 "2024-09-30T20:15:11Z")

</div>

![sessionissue1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af61704dd09a5529ce569abb608ac91c7aaddcdf.png)  
when i am trying to access user.id value from designer, i am getting 13 but when i am trying to access from the browser, its giving me email. What is happening here could anyone elloborate this one?

---

<div class="post-metadata">

**Author:** ![Pappu\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Pappu\_Gupta](https://forum.inductiveautomation.com/u/Pappu_Gupta)\
**Post date:** [October 1, 2024, 5:35am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/2 "2024-10-01T05:35:27Z")

</div>

Could any one provide me the reason for this one?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 1, 2024, 8:46am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/3 "2024-10-01T08:46:40Z")

</div>

You'll have to give us more details.  
How are you trying to access that prop ?

---

<div class="post-metadata">

**Author:** ![Pappu\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Pappu\_Gupta](https://forum.inductiveautomation.com/u/Pappu_Gupta)\
**Post date:** [October 1, 2024, 10:16am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/4 "2024-10-01T10:16:29Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0ffec52e3378029525256a378f492c9ef539f4b.png)  
As u seen that i am trying to pass user id in named query to insert the record  
This query is working fine inside the designer but when i run the same query in browser, user id is receiving as email

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 1, 2024, 10:24am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/5 "2024-10-01T10:24:35Z")

</div>

Are you using the default 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:** [October 1, 2024, 10:26am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/6 "2024-10-01T10:26:36Z")

</div>

To debug, add a label into the view and bind its text property to `self.session.props.auth.user` so you can see what's going on.

Note that the correct format is,  
`session.props.auth.user.id`  
without the "self". Picking the property with the Property Browser button will generally avoid this kind of problem.

* * *

Tip: post code, not pictures of code. See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![Pappu\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Pappu\_Gupta](https://forum.inductiveautomation.com/u/Pappu_Gupta)\
**Post date:** [October 1, 2024, 11:52am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/7 "2024-10-01T11:52:49Z")

</div>

> [@Transistor](#):
>
> To debug, add a label into the view and bind its text property to `self.session.props.auth.us`

Inside the designer , it is giving as value as 13 inside label. But on runtime, it is giving as email

---

<div class="post-metadata">

**Author:** ![Pappu\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Pappu\_Gupta](https://forum.inductiveautomation.com/u/Pappu_Gupta)\
**Post date:** [October 1, 2024, 11:57am UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/8 "2024-10-01T11:57:30Z")

</div>

No i am using the customized one where my user source is of type database not the internal one

---

<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:** [October 1, 2024, 2:30pm UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/9 "2024-10-01T14:30:48Z")

</div>

> [@Pappu\_Gupta](#):
>
> ... i am using the customized one ...

I don't understand that. Please provide more context and any relevant scripts.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 2, 2024, 5:52pm UTC](https://forum.inductiveautomation.com/t/session-properties-issues/96633/10 "2024-10-02T17:52:40Z")

</div>

Are you logging in with the same user _from the same user source_ in both the designer and the client? What user sources do you have defined, and do you have your user defined in both? What is your designer user source set to, and what is your project's perspective user source set to?
