Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
- This routine is available starting with katl-commons 1.0.
- This routine is available for Jira server and cloud deployment options.
DescriptionVerifies if the selected user is in the selected group(s).
string / string
Name(s) of the group(s) the user should belong to.
Name or key of the user that needs to be verified.
On the server version, it searches by the user key first and if there is no result - by the user name as well. On the cloud version, the search is done by the user key only.
A "true" return value means that the user associated with the specified username or userkey belongs to the given group(s).
Example 1 Server
Returns "true" if Admin1 is included in Administrators group and "false" if Admin1 is not included in Administrators group.
Example 2 Cloud
Returns "true" if the user with this key is included in Administrators group and "false" if the user with this key is not included in Administrators group.
Returns: True if the current user is included in "Users" group or False if the current user is not included in "Users" group.
Returns "true" if the current user is included in Users or Administrators group and "false" if the current user is not included neither in Users nor in Administrators group.
On the server the look-up is first made after the userkey, then after the username. On cloud the look-up is made only after the userkey.