Hi All,
I am using the following expression rule to check whether the loggedin user belongs to a group or not. If he/she belongs to a group then it returns "True", otherwise it returns an "Error" instead of returning "False". Please help me to handle this error. Thank you.
For your kind reference,
if( isusermemberofgroups( loggedInUser(), ri!groupIdInput ), true, false )
Error Occurred
Expression evaluation error at function 'isusermemberofgroups' [line 22]: [InvalidUserException]
Discussion posts and replies are publicly visible
Does this work if you use the built-in function "isusermemberofgroup" rather than the plugin function "isusermemberofgroups"?
Hi. I am getting this error while using the built-in function only.
Sorry, to clarify, you mean you just tried this with the built-in function, and you got an error? Are you running this as a system administrator or a basic user?
Yeah. System administrator only.