Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Identity Hub
    • All guides
    • Subscribing a user to notifications
      • Overview
      • Adding a user
      • Getting user info
      • Updating local user data
      • Changing a local user password
      • Viewing user groups
      • Activating a user
      • Deactivating a user
      • Viewing user logs
      • Managing user sessions
      • Deleting a user account
      • Leaving an organization
    • Billing management in Yandex Identity Hub
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • Yandex Identity Hub Sync Agent release notes

In this article:

  • Resetting a password
  • Setting a password
  1. Step-by-step guides
  2. Managing users
  3. Changing a local user password

Updating a local user password

Written by
Yandex Cloud
Updated at November 24, 2026
View in Markdown
  • Resetting a password
  • Setting a password

Note

This guide requires you to use the CLI if one or more of the following conditions are true:

  • The Block users from viewing the list of organization members and their details option is enabled in the organization's settings.
  • The organization.denyUserListing access policy applies, which prohibits viewing the organization's user list.

Resetting a passwordResetting a password

To reset a local user password, do the following:

Cloud Center UI
CLI
  1. Log in to Yandex Identity Hub using an administrator or organization owner account.

  2. In the left-hand panel, select Users and find the local user.

    Optionally, use the search bar or filter at the top of the page.

  3. In the row with the user, click and select Reset password.

  4. In the window that appears, select a password reset method:

    • Generate automatically: A new password will be generated automatically. Save the generated password and communicate it to the user. After closing the window, you will not be able to view the new password.
    • Set manually: Specify a new password yourself. It must comply with the user pool's password policy.
  5. Click Reset password.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id.

If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command for resetting a user password in a pool:

    yc organization-manager idp user reset-password --help
    
  2. To get a list of pools in an organization, provide its ID in this command:

    yc organization-manager idp userpool list \
      --organization-id <organization_ID>
    

    Result:

    +----------------------+--------------+-------------+----------------------+---------------------+
    |          ID          |     NAME     | DESCRIPTION |   ORGANIZATION ID    |     CREATED AT      |
    +----------------------+--------------+-------------+----------------------+---------------------+
    | ek0o6g0irskn******** | sample-pool1 |             | bpf2c65rqcl8******** | 2025-05-17 10:01:04 |
    | ek03mf01jr4z******** | sample-pool2 |             | bpf2c65rqcl8******** | 2025-06-28 16:30:23 |
    +----------------------+--------------+-------------+----------------------+---------------------+
    
  3. To get the IDs and other information about pool users, provide the pool ID in the following command:

    yc organization-manager idp user list \
      --userpool-id <user_pool_ID>
    

    Result:

    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    |          ID          |                USERNAME                | FULL NAME |     USERPOOL ID      | IS ACTIVE |     CREATED AT      |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    | aje3i1gq49n3******** | test-user1@test.ru.idp.yandexcloud.net | User 1    | ek0o6g0irskn******** | true      | 2025-10-07 10:41:54 |
    | aje0j5mts02t******** | test-user2@test.ru.idp.yandexcloud.net | User 2    | ek0o6g0irskn******** | false     | 2025-07-16 11:18:57 |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    
  4. Run the command, specifying the user ID:

    yc organization-manager idp user reset-password <user_ID>
    

    Result:

    generated password for user 'ek0gkfu0jc7v********' is 'rhls-mpvg-****-****'
    

    Save the generated password and communicate it to the user. After closing the shell, you will not be able to view the new password.

The user must change this password on their first login to Yandex Cloud.

Note

If a password policy is configured for a user pool, it will not apply to automatically generated passwords.

Setting a passwordSetting a password

Cloud Center UI
CLI
Terraform
API

To set a random password for a local user, reset the previous one. When resetting, opt for Set manually and specify a new password.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id.

If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View the description of the CLI command for changing a user password in a pool:

    yc organization-manager idp user set-password --help
    
  2. To get a list of pools in an organization, provide its ID in this command:

    yc organization-manager idp userpool list \
      --organization-id <organization_ID>
    

    Result:

    +----------------------+--------------+-------------+----------------------+---------------------+
    |          ID          |     NAME     | DESCRIPTION |   ORGANIZATION ID    |     CREATED AT      |
    +----------------------+--------------+-------------+----------------------+---------------------+
    | ek0o6g0irskn******** | sample-pool1 |             | bpf2c65rqcl8******** | 2025-05-17 10:01:04 |
    | ek03mf01jr4z******** | sample-pool2 |             | bpf2c65rqcl8******** | 2025-06-28 16:30:23 |
    +----------------------+--------------+-------------+----------------------+---------------------+
    
  3. To get the IDs and other information about pool users, provide the pool ID in the following command:

    yc organization-manager idp user list \
      --userpool-id <user_pool_ID>
    

    Result:

    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    |          ID          |                USERNAME                | FULL NAME |     USERPOOL ID      | IS ACTIVE |     CREATED AT      |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    | aje3i1gq49n3******** | test-user1@test.ru.idp.yandexcloud.net | User 1    | ek0o6g0irskn******** | true      | 2025-10-07 10:41:54 |
    | aje0j5mts02t******** | test-user2@test.ru.idp.yandexcloud.net | User 2    | ek0o6g0irskn******** | false     | 2025-07-16 11:18:57 |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    
  4. Run this command, specifying the user ID and their new password in the --password parameter:

    yc organization-manager idp user set-password <user_ID> \
      --password <new_password>
    

    Note

    The new password must comply with the user pool's password policy.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the guides on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

  1. Describe the user parameters in the configuration file:

    resource "yandex_organizationmanager_idp_user" "example_user" {
      userpool_id = "<pool_ID>"
      username    = "<username>"
      full_name   = "<full_username>"
      password_spec = {
        password = "<new_password>"
      }
    }
    

    Where:

    • userpool_id: ID of the pool the user is in.
    • username: Username.
    • full_name: User’s full name.
    • password: New user password.

    Note

    The new password must comply with the user pool's password policy.

    For more on the properties of the yandex_organizationmanager_idp_user resource, see this provider guide.

  2. Apply the changes:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      The terminal will display a list of intended changes: resources and/or output variables. No changes will be made at this step. Terraform will show any errors detected in the configuration.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

    Terraform will update all the required resources. You can check the updates using the Cloud Center UI.

To change your password, use the setOwnPassword REST API method for the User resource or the UserService/SetOwnPassword gRPC API call.

To set a password for another user, use the setOthersPassword REST API method for the User resource or the UserService/SetOthersPassword gRPC API call.

The user must change this password on their first login to Yandex Cloud.

Was the article helpful?

Previous
Updating local user data
Next
Viewing user groups
© 2026 Direct Cursus Technology L.L.C.