Is it possible to get the role of the logged-in user in javascript ?
Accepted answer
Hi Anmol,
No, you can not because the API for Javascript does not provide such a endpoint.
Comments
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/
2 votes