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

admAddUserToProjectRole(user, project, role)

Package

adm

Alias

Pkg Usage

addUserToProjectRole(user, project, role)

Description

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

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

Parameters

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

Parameter name

Type

Required

Description

User

String

Yes

Username or userkey.

Project key

String

Yes

Key of the selected project.

Role name

String

Yes

Name of the role to add the user to.

Return Type

Boolean

Example

Code Block
languagejs
addUserToProjectRole("user.3", "TEST", "Developers");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "user_admin_function" and space = currentSpace ( )
labelsarray_functions