# getClusterDFSDatabases {#getclusterdfsdatabases}

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

## Syntax {#syntax}

`getClusterDFSDatabases()`

## Arguments {#arguments}

None

## Details {#details}

When executed by an administrator, this function returns all distributed databases in the cluster.

When executed by a non-admin user, it returns the distributed databases in the cluster for which the user has any of the following permissions: DB\_MANAGE, DB\_OWNER, DB\_READ, DB\_INSERT, DB\_UPDATE, DB\_DELETE, DBOBJ\_CREATE, DBOBJ\_DELETE.

## Examples {#examples}

```
getClusterDFSDatabases()
// output: ["dfs://demohash","dfs://myDataYesDB","dfs://testDB"]
```

