# Current user and department settings in rules and actions

**URL:** <https://forum.sambapos.com/t/current-user-and-department-settings-in-rules-and-actions/1927>\
**Category:** V4 Question\
**Created:** [July 29, 2014, 10:50pm UTC](https://forum.sambapos.com/t/current-user-and-department-settings-in-rules-and-actions/1927 "2014-07-29T22:50:48Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![pipo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pipo/32/4085_2.png) [@pipo](https://forum.sambapos.com/u/pipo)\
**Post date:** [August 2, 2014, 12:35am UTC](https://forum.sambapos.com/t/current-user-and-department-settings-in-rules-and-actions/1927/11 "2014-08-02T00:35:33Z")

</div>

Strange, when I tried {:DEPARTMENT} before, it didn’t work, and now suddenly it does.

For the username, I had to use @JohnS’s method of storing it at login time ([Terminal Events](http://forum.sambapos.com/t/terminal-events/1302/4)).

So now it seems to be working most of the time (including when there’s no ticket):

 ![](https://forum.sambapos.com/uploads/default/original/3X/7/4/7403d4c17874cd9833a63f988eae6120a2a6d565.jpeg) 

 ![](https://forum.sambapos.com/uploads/default/original/3X/3/8/380ab837819237725954031f9cbf722ee2474b34.jpeg) 

![](https://forum.sambapos.com/uploads/default/original/3X/5/0/50ef71f9b3bf14f3834ff35dc096f3e587679e5f.jpeg)

It is not working all the time though. When you go to the management screen and back both values are gone, and I get this:

![](https://forum.sambapos.com/uploads/default/original/3X/2/8/283151f926c8951e96b0b4f48441d18408e424c1.jpeg)

Does anybody have any idea why this is and possibly a solution?

---

_[View the full topic](https://forum.sambapos.com/t/current-user-and-department-settings-in-rules-and-actions/1927)._
