# IRPCVaultLoginsAdmin.GetAllDomainsInVault

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Vault login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/GetAllDomainsInVault/

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Lists the domains whose accounts can be imported: the server's own domain and the domains it
can reach.

- **Service:** [Vault login accounts](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/index.md) `MFiles.IRPCVaultLoginsAdmin`
- **gRPC method:** `/MFiles.IRPCVaultLoginsAdmin/GetAllDomainsInVault`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-all-domains-in-vault`
- **Request:** [`GetAllDomainsInVaultRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/GetAllDomainsInVault/index.md#request)
- **Response:** [`GetAllDomainsInVaultResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultLoginsAdmin/GetAllDomainsInVault/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the vault right `manage_users`. Includes the domains of the vault's default user
  synchronization plugin. Returns no directory domains when the server computer is not in a
  domain.

<a id="request"></a>

## Request: GetAllDomainsInVaultRequest

No fields.

<a id="response"></a>

## Response: GetAllDomainsInVaultResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `domains[]` | repeated `string` | Domain names. |
