Versions Compared

Key

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

Syntax

groupExists()

Description

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

Syntax

getAllGroups()

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Gets a list of all groups in Confluence.

Return type

String Gets a list of all groups in Confluence.

Return Type

String []Returns an array of group name strings.

Examples

Example 1

Code Block
languagejs
return groupExists("confluence-users")

...

getAllGroups();

Results: returns confluence-administrators|confluence-users

Example 2

Code Block
languagejs
for(string g in getAllGroups()) {
    runnerLog(g);
}

Results: displays each group name on a new line

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

group_

...

routines" and space = currentSpace ( )
labels

...

array_routines
We've encountered an issue exporting this macro. Please try exporting this page again later.