# awx loginuser variable

**URL:** <https://forum.ansible.com/t/awx-loginuser-variable/28863>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 24, 2018, 1:08pm UTC](https://forum.ansible.com/t/awx-loginuser-variable/28863 "2018-10-24T13:08:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Me\_Mo](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@Me\_Mo](https://forum.ansible.com/u/Me_Mo)\
**Post date:** [October 24, 2018, 1:08pm UTC](https://forum.ansible.com/t/awx-loginuser-variable/28863/1 "2018-10-24T13:08:07Z")

</div>

hi

i want to use the user that startet the template in a playbook.

is there any ansible\_variable which stored the user-id?

[th@nx](mailto:th@nx)

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 24, 2018, 1:29pm UTC](https://forum.ansible.com/t/awx-loginuser-variable/28863/2 "2018-10-24T13:29:27Z")

</div>

We do attach some values as extra vars and environment variables… you can see these in the api resources for jobs.

---

<div class="post-metadata">

**Author:** ![Larry\_Bakun](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Post date:** [October 25, 2018, 2:00pm UTC](https://forum.ansible.com/t/awx-loginuser-variable/28863/3 "2018-10-25T14:00:21Z")

</div>

The “tower\_user\_name” represents currently logged in user.

Thanks,  
Larry
