# Username in Transactin Group

**URL:** <https://forum.inductiveautomation.com/t/username-in-transactin-group/10082>\
**Category:** Ignition\
**Created:** [June 2, 2015, 4:11pm UTC](https://forum.inductiveautomation.com/t/username-in-transactin-group/10082 "2015-06-02T16:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![McAlisterD](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@McAlisterD](https://forum.inductiveautomation.com/u/McAlisterD)\
**Post date:** [June 2, 2015, 4:11pm UTC](https://forum.inductiveautomation.com/t/username-in-transactin-group/10082/1 "2015-06-02T16:11:11Z")

</div>

I am trying to log cycle data using a transaction group. I would like to have the current logged in operator as a part of that record. I created a standard transaction group and added the data to store. It all works fine except the Client\User\Username tag is storing as null. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Stevenson.Yuan](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Stevenson.Yuan](https://forum.inductiveautomation.com/u/Stevenson.Yuan)\
**Post date:** [June 23, 2015, 3:51pm UTC](https://forum.inductiveautomation.com/t/username-in-transactin-group/10082/2 "2015-06-23T15:51:27Z")

</div>

Transaction groups run on the server side of things and thus the [client] tags are non-existent at that point.

If you set up a new gateway memory tag and maybe put a client startup script that gets updated whenever a client launches, the transaction group can at least log the “last logged in user”. Otherwise there’s no good mechanism to trap that information.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 24, 2015, 1:11pm UTC](https://forum.inductiveautomation.com/t/username-in-transactin-group/10082/3 "2015-06-24T13:11:24Z")

</div>

The client tags are not available in the server environment, but the gateway can deliver information about all logged-in users via runScript(). Create an expression tag with the following one-liner:`runScript("','.join([x['username'] for x in system.util.getSessionInfo()])")`If you don’t want to include active designers, use this one:`runScript("','.join([x['username'] for x in system.util.getSessionInfo() if not x['isDesigner']])")`You can also place this in a triggered expression item that stores directly to the database.
