# List Metastore Assignments

Launch stage: GA

`GET /api/2.0/accounts/{account_id}/metastores/{metastore_id}/workspaces`

Gets a list of all <Databricks> workspace IDs that have been assigned to given metastore.

API scopes: unity-catalog

## Path parameters

- `account_id` (string, optional)
  <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html)
- `metastore_id` (string, optional)
  Unity Catalog metastore ID

## Returns

- `workspace_ids` (array of int64, optional)

## Response

```json
{
  "workspace_ids": [
    0
  ]
}
```

