Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

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

Boolean

Returns "true" if operation succeeded.

Example

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

Note

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "user_admin_routine" and space = currentSpace ( )
labelsarray_routines