# Method: domains.enableMigration

- [HTTP request](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#body.aspect)
- [OnPremDomainDetails](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#OnPremDomainDetails)
  - [JSON representation](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#OnPremDomainDetails.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#try-it)

**Full name**: projects.locations.global.domains.enableMigration

Enable Domain Migration

### HTTP request

`POST https://managedidentities.googleapis.com/v1beta1/{domain=projects/*/locations/global/domains/*}:enableMigration`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `domain` | `string` Required. The domain resource name using the form: `projects/{projectId}/locations/global/domains/{domainName}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `domain`: - `managedidentities.domains.enableMigration` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "migratingDomains": [ { object (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#OnPremDomainDetails`) } ] } ``` |

| Fields ||
|---|---|
| `migratingDomains[]` | ``object (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/enableMigration#OnPremDomainDetails`)`` Required. List of the on-prem domains to be migrated. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization Scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).

## OnPremDomainDetails

OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.

| JSON representation |
|---|
| ``` { "domainName": string, "disableSidFiltering": boolean } ``` |

| Fields ||
|---|---|
| `domainName` | `string` Required. FQDN of the on-prem domain being migrated. |
| `disableSidFiltering` | `boolean` Optional. Option to disable SID filtering. |