Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleAvailability

This routine is available starting with SIL Engine™ 2.5.16 for Jira 5.x / 2.6.8 for Jira 6.

Syntax

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

addUserToGroup(user, group)

Package

Alias

addUserToGroup

...

Pkg Usage

Description

Excerpt
hiddentrue
Adds a single user to a group if the user is not already in that group.

Adds a single user to a group if the user is not already in that group.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

User

String

Yes

Username or userkey.

Group

String

Yes

Group name.

Return

...

Type

booleanBoolean

Returns "true" if operation succeeded.

Example

Code Block
admAddUserToGroupaddUserToGroup("user.3", "Senior Developers");

Notes

Note

The look-up is first made after the userkey, then after the username.

See also

Filter by label (Content by label)
showLabelsfalse
max15025
showSpacefalse
cqllabel in ( = "jirauser_groupadmin_routine" , "jira_user_routine" and space = currentSpace ( )
labelsjira_group_routine jira_user_routinearray_routines