# Session.props.auth.user.id return null

**URL:** <https://forum.inductiveautomation.com/t/session-props-auth-user-id-return-null/94481>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 12, 2024, 12:51am UTC](https://forum.inductiveautomation.com/t/session-props-auth-user-id-return-null/94481 "2024-08-12T00:51:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [August 12, 2024, 12:51am UTC](https://forum.inductiveautomation.com/t/session-props-auth-user-id-return-null/94481/1 "2024-08-12T00:51:41Z")

</div>

for the life of me..

Running On browser, I want to get userId `session.props.auth.user.id`.  
For the life of me.. it always returns null

Is there a security of some kind blocking this access?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 12, 2024, 12:56am UTC](https://forum.inductiveautomation.com/t/session-props-auth-user-id-return-null/94481/2 "2024-08-12T00:56:03Z")

</div>

Docs suggest it would be null if the user is not authenticated:

> The IdP's unique identifier for this user. Null if the user is not authenticated.

Is that the case?

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [August 12, 2024, 12:58am UTC](https://forum.inductiveautomation.com/t/session-props-auth-user-id-return-null/94481/3 "2024-08-12T00:58:23Z")

</div>

My Bad 🤦‍♂️

Thank man.. spend 2 hours debugging.
