Versions Compared

Key

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

Syntax

addUserToGroup(userNameOrKey, groupName)

Description

Excerpt

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

Parameters

Parameter name

Type

Required

Description

userNameOrKey

stringYesUser name or key of a user to add into a group.
groupNamestringYesName of a group to add user into.

...

Returns true if a user was successfully added into a group. Otherwise returns false.

Example

Example 1

Code Block
addUserToGroup("jdoe", "confluence-users");

Adds user the "jdoe" user into group the "confluence-users" group.

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "ps_conf"
labelsjira_comment_routine