[Документация Yandex Cloud](../../../../../index.md) > [Yandex Identity Hub](../../../../index.md) > Справочник API > gRPC (англ.) > [Identity Provider API](../index.md) > [User](index.md) > GeneratePassword

# Identity Provider API, gRPC: UserService.GeneratePassword

Generates a new password.

## gRPC request

**rpc GeneratePassword ([GeneratePasswordRequest](#yandex.cloud.organizationmanager.v1.idp.GeneratePasswordRequest)) returns ([GeneratePasswordResponse](#yandex.cloud.organizationmanager.v1.idp.GeneratePasswordResponse))**

## GeneratePasswordRequest {#yandex.cloud.organizationmanager.v1.idp.GeneratePasswordRequest}

```json
{}
```

Request to generate a new password.

#|
||Field | Description ||
|| Empty | > ||
|#

## GeneratePasswordResponse {#yandex.cloud.organizationmanager.v1.idp.GeneratePasswordResponse}

```json
{
  "password_spec": {
    "password": "string",
    "generation_proof": "string"
  }
}
```

Response for the [UserService.GeneratePassword](#GeneratePassword) operation.

#|
||Field | Description ||
|| password_spec | **[PasswordSpec](#yandex.cloud.organizationmanager.v1.idp.PasswordSpec)**

Generated password specification. ||
|#

## PasswordSpec {#yandex.cloud.organizationmanager.v1.idp.PasswordSpec}

Password specification.

#|
||Field | Description ||
|| password | **string**

Required field. The password string.

The maximum string length in characters is 128. ||
|| generation_proof | **string**

Proof that the password was generated by the system.

The maximum string length in characters is 128. ||
|#