How to get role/s of currently logged on user
Trying to pass the currently logged on users role to a hidden field. Have found this function frevvo.roles()
but not having any luck. Can you point me in right direction.
-
Hi Mike,
Please see this business rule example which shows how to get currently logged in user's roles.
-Prajakta
-
So, part of this rule i'm building is to take the current logged on user's role and then get their manager/principal based on the current logged on users role and the the manager being in a principal group(their also in the same group as the logged on user). I thought i could use this function frevvo.userIds() with 2 roles as variables, but it seems to be an "or" instead of an "and". I end up getting all users from both roles instead of just the one manager. Got any ideas? Could i just make a new function based on the original and change it to an "and"?
Please sign in to leave a comment.
Comments
5 comments