# Method: domains.checkMigrationPermission

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

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

domains.checkMigrationPermission API gets the current state of DomainMigration

### HTTP request

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

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.checkMigrationPermission` |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:
CheckMigrationPermissionResponse is the response message for domains.checkMigrationPermission method.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#State`), "onpremDomains": [ { object (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#OnPremDomainSIDDetails`) } ] } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#State`)`` The state of DomainMigration. |
| `onpremDomains[]` | ``object (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#OnPremDomainSIDDetails`)`` The state of SID filtering of all the domains which has trust established. |

### 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/).

## State

State of DomainMigration Permissions.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | DomainMigration is in unspecified state. |
| `DISABLED` | Domain Migration is Disabled. |
| `ENABLED` | Domain Migration is Enabled. |
| `NEEDS_MAINTENANCE` | Domain Migration is not in valid state. |

## OnPremDomainSIDDetails

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

| JSON representation |
|---|
| ``` { "name": string, "sidFilteringState": enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#SIDFilteringState`) } ``` |

| Fields ||
|---|---|
| `name` | `string` FQDN of the on-prem domain being migrated. |
| `sidFilteringState` | ``enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains/checkMigrationPermission#SIDFilteringState`)`` Current SID filtering state. |

## SIDFilteringState

State of SIDFiltering Permissions.

| Enums ||
|---|---|
| `SID_FILTERING_STATE_UNSPECIFIED` | SID Filtering is in unspecified state. |
| `ENABLED` | SID Filtering is Enabled. |
| `DISABLED` | SID Filtering is Disabled. |