Getting information about a user pool
Note
This feature is at the Preview stage.
- Log in to Yandex Identity Hub
using an administrator or organization owner account. - In the left-hand panel, click
User pools. - Select the required pool from the user pool list.
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.
-
See the description of the CLI command for getting information about a user pool:
yc organization-manager idp userpool get --help -
Run this command:
yc organization-manager idp userpool get <pool_ID>
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.
To get a list of domains in a user pool:
-
Add the
dataandoutputsections to the Terraform configuration file:data "yandex_organizationmanager_idp_userpool" "userpool" { userpool_id = "<pool_ID>" } output "my_userpool-domains" { value = data.yandex_organizationmanager_idp_userpool.userpool.domains }Where:
data "yandex_organizationmanager_idp_userpool": Description of the user pool as a data source:userpool_id: Pool ID.
output "instance_domain": Output variable that contains information about the pool domains:value: Return value.
You can replace
domainswith any other parameter to get the information you need. For more information about theyandex_organizationmanager_idp_userpooldata source properties, see this Terraform provider article. -
Create the resources:
-
In the terminal, go to the directory where you edited the configuration file.
-
Make sure the configuration file is correct using this command:
terraform validateIf the configuration is correct, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou 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.
-
Apply the changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will create the required resources and display their output variables. To check the results, run this command:
terraform outputResult:
my_userpool-domains = tolist([ "domain.example1.net", "domain-example2.ru" ]) -
Use the Userpool.Get REST API method for the Userpool resource or the UserpoolService/Get gRPC API call.