# getUserListOfAllClusters {#getUserListOfAllClusters}

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

## Syntax {#syntax}

`getUserListOfAllClusters()`

## Arguments {#arguments}

None

## Details {#details}

Get users for all clusters in the 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: List of the user.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
getUserListOfAllClusters()
      
/* Output:
masterOfMaster->["user1","user2","admin"]
MoMSender->["admin","user2"]  
*/   
```

