isusermemberofgroups Function

Certified Senior Developer

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

Parents Reply Children
No Data