Does user belong to groups

Hi,

we used the function doesuserbelongstogroup on 1 of our production environment, but due to an error we don't have this function on our other production environment, does anyone remember and can insert the link to the shared component that include this function

Thanks

OriginalPostID-265486

  Discussion posts and replies are publicly visible

Parents
  • ok,

    I have read and tested the function isusermemberofgroups and for other project I use it, so probably is better to substitute it with this function
  • When I use the isusermemberofgroups function and the user is not a member of the group, it doesn't return false, it just errors out. Has anyone experienced this as well?

    Details: ERROR:An error occurred while evaluating expression: auReviewer_cdt.reviewer_usr:if(isusermemberofgroup(tp!owner,getgroupbyname("P2P_Pay_Invoice_Admin")),pv!auReviewer_cdt.reviewer_usr,tp!owner) (Expression evaluation error at function 'isusermemberofgroup': Error evaluating function 'isusermemberofgroup' : Invalid null group ID argument.) (Data Outputs)
Reply
  • When I use the isusermemberofgroups function and the user is not a member of the group, it doesn't return false, it just errors out. Has anyone experienced this as well?

    Details: ERROR:An error occurred while evaluating expression: auReviewer_cdt.reviewer_usr:if(isusermemberofgroup(tp!owner,getgroupbyname("P2P_Pay_Invoice_Admin")),pv!auReviewer_cdt.reviewer_usr,tp!owner) (Expression evaluation error at function 'isusermemberofgroup': Error evaluating function 'isusermemberofgroup' : Invalid null group ID argument.) (Data Outputs)
Children