It's all about the answers!

Ask a question

Is it possible to get the role of the logged-in user in javascript ?


Anmol Rattan (343) | asked Jun 02 '20, 3:02 a.m.

 Can we access roles of the logged-in user in a conditional/ validation / calculated value script in rtc ?

Accepted answer


permanent link
Bartosz Chrabski (3.4k22949) | answered Jun 02 '20, 3:53 a.m.

 Hi Anmol,


No, you can not because the API for Javascript does not provide such a endpoint.

Anmol Rattan selected this answer as the correct answer

Comments
2
Ralph Schoon commented Jun 02 '20, 7:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I agree, there is no public documentation for how to do that in JavaScript. It is possible using the Java API as explained here: https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.