---
title: "getAllGroups"
canonical: "https://support.appfire.com/space/PSCONF/15304657/getAllGroups"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getAllGroups() | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets a list of all groups in Confluence.

Gets a list of all groups in Confluence.

## Return Type

**String []**

## Examples

### Example 1

```javascript
return getAllGroups();
```

Results: returns confluence-administrators|confluence-users

### Example 2

```javascript
for(string g in getAllGroups()) {
    runnerLog(g);
}
```

Results: displays each group name on a new line

## See also

> Macro (contentbylabel)