Hi!
How are you?
I hope you can help me!
How can I get the role of the user loggued in?
I need to get the user's role to be based on this, set fields like readonly, or hide some tab.
Thanks!
Regards,
Ezequiel
Like
Hello!
You can use the following global variable
var currentUserId = Terrasoft.SysValue.CURRENT_USER.value;
Following that, build ESQ Select query.
You can find an example in the following article:
https://academy.bpmonline.com/documents/technic-sdk/7-11/getting-query-…
Finally, Select from SysUser or SysAdminUnitInRole to obtain roles.
Hello,
Is that Select query from SysAdminUnitInRole still available ? I got an error :
ErrorCode: "SecurityException", message: "Current user does not have permissions for the "SysAdminUnitInRole" object", stackTrace: undefined, errors: Array(0)
I get my role with Select Query in SysUserInRole