Editing a user pool
-
Log in to Yandex Identity Hub
using an administrator or organization owner account. -
In the left-hand panel, select
User pools. -
In the line with the user pool, click
and select Edit. -
Specify a new name or description for the user pool.
The name must be unique within the organization and follow the naming requirements:
- It must be from 1 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
Specify a new domain to use if there are no other domains associated with the pool.
-
Add or delete labels.
-
Update the data users can edit on the My account portal.
-
In the Lifetime session field, specify a time period for user sessions to remain active before requiring reauthentication in Yandex Identity Hub.
-
Click Save.
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.
-
View the description of the CLI command to update a user pool:
yc organization-manager idp userpool update --help -
Run this command:
yc organization-manager idp userpool update <pool_ID> \ --userpool-name <pool_name> \ --description <pool_description> \ --default-subdomain <default_domain> \ --labels <key>=<value>[,<key>=<value>]Where:
-
--userpool-name: New user pool name. The name must be unique within the organization and aligned with the naming requirements:- It must be from 1 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
--description: New user pool description. -
--labels: New list of labels. You can specify one or more labels separated by commas in<key1>=<value1>,<key2>=<value2>format.
-
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Open the Terraform configuration file and update the user pool parameters:
resource "yandex_organizationmanager_idp_userpool" "example_userpool" { organization_id = "<organization_ID>" name = "<pool_name>" description = "<pool_description>" default_subdomain = "<default_domain>" labels = { <key> = "<value>" } user_settings { allow_edit_self_contacts = <true_or_false> allow_edit_self_info = <true_or_false> allow_edit_self_login = <true_or_false> allow_edit_self_password = <true_or_false> } }Where:
-
name: New user pool name. The name must be unique within the organization and aligned with the naming requirements:- It must be from 1 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
description: New user pool description. -
default_subdomain: New default domain. It will be used if no other domains are associated with the pool. -
labels: New list of labels. -
user_settings: User data available for editing on the My account portal. The following options are available:allow_edit_self_contacts: Editing contact details.allow_edit_self_info: Editing personal data.allow_edit_self_login: Editing username.allow_edit_self_password: Editing password.
For more information about the
yandex_organizationmanager_idp_userpoolproperties, see this provider guide. -
-
Apply the changes:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will update all the required resources. You can check the updates in the Cloud Center UI
or using this CLI command:yc organization-manager idp userpool get <pool_ID> -
Use the Userpool.Update REST API method for the Userpool resource or the UserpoolService/Update gRPC API call.