Updating user data
Note
This feature is at the Preview stage.
You can only update user data for local users.
To update local user data:
-
Log in to Yandex Identity Hub
using an administrator or organization owner account. -
In the left-hand panel, select
Users and find the local user in the list that opens.Optionally, use the search bar and filters at the top of the screen.
-
In the row with the user, click
and select Edit attributes. In the window that opens, do the following:- Update the username, domain, and full name.
- Add or update the email address.
- Expand the Personal information section and update the user's first name, last name, and phone number.
- Click Change user attributes.
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.
-
View the description of the CLI command for updating user data in the pool:
yc organization-manager idp user update --help -
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 | +----------------------+--------------+-------------+----------------------+---------------------+ -
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 | +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+ -
To update the user, provide their ID and other parameters in this command:
yc organization-manager idp user update <user_ID> \ --username <user_login_and_domain> \ --full-name <user_first_and_last_name> \ --given-name <username> \ --family-name <user_last_name> \ --email <user_email> \ --phone-number <user_phone_number>Where:
--username: New user login and domain inlogin@domainformat. The login must be unique for the current user pool.--full-name: New user first and last name.--given-name: New user name.--family-name: New user last name.--email: New user email address.--phone-number: New user phone number.
Use the User.Update REST API method for the User resource or the UserService/Update gRPC API call.