# getGroupListOfAllClusters {#getGroupListOfAllClusters}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getGroupListOfAllClusters()`

## Arguments {#arguments}

None

## Details {#details}

Get the list of user groups across all clusters in a multi-cluster environment. This function can only be executed by an administrator on the MoM \(Master of Masters\) cluster.

**Return value**: A dictionary with the following keys:

-   key: Name of the cluster.
-   value: A list of user group names.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
getGroupListOfAllClusters()
      
/* Output:
masterOfMaster->["group1"]
MoMSender->["group2"]  
*/  
```

