Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 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
      • Managing a user in the My Account portal
      • Viewing user groups
      • Activating a user
      • Deactivating a user
      • Viewing user logs
      • Deleting a user account
      • Leaving an organization
    • Syncing users and groups with Active Directory
    • Billing management in 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 January 29, 2026
  • Resetting a password
  • Setting a password

Note

This feature is at the Preview stage.

Resetting a passwordResetting a password

To reset a local user password, do the following:

Cloud Center UI
CLI
API
  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 opens, confirm resetting the password.

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

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

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  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.

Use the User.GeneratePassword REST API method for the User resource or the UserService/GeneratePassword gRPC API call.

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

Setting a passwordSetting a password

Cloud Center UI
CLI
Terraform
API

You cannot generate a random password for a local user via the Cloud Center interface. To change the password to a generated one, follow this guide.

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

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  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 relevant documentation on the Terraform website or its mirror.

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

  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 information about yandex_organizationmanager_idp_user properties, see the relevant provider documentation.

  2. Create the resources:

    1. In the terminal, go to the directory where you edited the configuration file.

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

      terraform validate
      

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

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

      terraform plan
      

      You will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.

    4. Apply the changes:

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

Use the User.SetOwnPassword REST API method for the User resource or the UserService/SetOwnPassword gRPC API call.

Was the article helpful?

Previous
Updating local user data
Next
Managing a user in the My Account portal
© 2026 Direct Cursus Technology L.L.C.