# Method: domains.resetAdminPassword

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

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

Resets a domain's administrator password.

### HTTP request

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

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `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 `name`: - `managedidentities.domains.resetpassword` |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:
Response message for \[domains.resetAdminPassword\]\[google.cloud.managedidentities.v1beta1.ResetAdminPassword\]

| JSON representation |
|---|
| ``` { "password": string } ``` |

| Fields ||
|---|---|
| `password` | `string` A random password. See `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains#Domain.FIELDS.admin` for more information. |

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