addUserToGroup

addUserToGroup

Syntax

addUserToGroup(userNameOrKey, groupName)

Package

Alias

Pkg Usage

Description

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

Parameters

Parameter name

Type

Required

Description

userNameOrKey

String

Yes

User name or key of a user to add into a group.

groupName

String

Yes

Name of a group to add user into.

Return Type

Boolean (true/false)

Example

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

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.