# Username when launching workflows

**URL:** <https://forum.ansible.com/t/username-when-launching-workflows/27371>\
**Category:** AWX Project\
**Created:** [April 25, 2018, 1:09pm UTC](https://forum.ansible.com/t/username-when-launching-workflows/27371 "2018-04-25T13:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranav\_Baitule](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pranav\_Baitule](https://forum.ansible.com/u/Pranav_Baitule)\
**Post date:** [April 25, 2018, 1:09pm UTC](https://forum.ansible.com/t/username-when-launching-workflows/27371/1 "2018-04-25T13:09:13Z")

</div>

Is there a way to find which user invoked a workflow? The “tower\_user\_name” extra\_var is undefined when a workflow is launched.

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [April 25, 2018, 1:18pm UTC](https://forum.ansible.com/t/username-when-launching-workflows/27371/2 "2018-04-25T13:18:15Z")

</div>

Huh, that should be provided. We have worked to touch up the AWX metavars that go into playbooks.

[https://github.com/ansible/awx/blob/d04bbde3c217cb03b7729b7abc38702bbc6c0d80/awx/main/models/unified\_jobs.py#L1380-L1410](https://github.com/ansible/awx/blob/d04bbde3c217cb03b7729b7abc38702bbc6c0d80/awx/main/models/unified_jobs.py#L1380-L1410)

I expect awx\_user\_name and tower\_user\_name to reflect the user who launched the workflow. If you find that the outcome doesn’t match those expectations, we would love for you to file an issue. Thanks!

---

<div class="post-metadata">

**Author:** ![Pranav\_Baitule](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@Pranav\_Baitule](https://forum.ansible.com/u/Pranav_Baitule)\
**Post date:** [April 25, 2018, 1:30pm UTC](https://forum.ansible.com/t/username-when-launching-workflows/27371/3 "2018-04-25T13:30:24Z")

</div>

The meta vars are passed as expected when a user launches a job template but they are not passed when a workflow is launched, which is weird.

I am on AWX version 1.0.5.20 and Ansible version 2.5. I will update AWX to the latest version and file an issue if I encounter the same behavior.

Thanks.
