Welcome to the Jazz Community Forum
RTC how to set an attribute to current user when another attribute changes

One answer

As far as I am aware, there is no official API that would allow to get the current user in JavaScript attribute customization scripts. There is an undocumented unofficial way that works only in the Web UI. You can find examples using https://www.google.com/search?q=javascript+logged+in+user+site%3Ajazz.net
It is possible to access this information in Java based attribute customization. https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ shows examples and the method ContributorUtil in the blog shows how.