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
      • Creating a user pool
      • Updating a user pool
      • Setting up a domain in a user pool
      • Getting a list of user pools
      • Getting information about a user pool
      • Getting a list of users in a pool
      • Setting up access to a user pool
      • Setting up a password policy
      • Deleting a user pool
    • 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
  1. Step-by-step guides
  2. Managing user pools
  3. Creating a user pool

Creating a user pool

Written by
Yandex Cloud
Updated at January 29, 2026

Note

This feature is at the Preview stage.

Cloud Center UI
CLI
Terraform
API
  1. Log in to Yandex Identity Hub.

  2. In the left-hand panel, select User pools.

  3. In the top-right corner of the page, click Create user pool.

  4. Enter a name and description for the user pool.

    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.
  5. In the Default domain field, add the domain that will be used if there are no other domains associated with the pool.

  6. Optionally, add labels:

    1. Click Add label.
    2. Enter a label in key: value format.
    3. Press Enter.
  7. Click Create userpool.

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 creating a user pool:

    yc organization-manager idp userpool create --help
    
  2. Run this command:

    yc organization-manager idp userpool create \
      --organization-id <organization_ID> \
      --userpool-name <pool_name> \
      --description <pool_description> \
      --default-subdomain <default_domain> \
      --labels <key>=<value>[,<key>=<value>]
    

    Where:

    • --organization-id: ID of the organization you want to create a user pool in.

    • --userpool-name: 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: User pool description. This is an optional parameter.

    • --default-subdomain: Default domain. It will be used if no other domains are associated with the pool.

    • --labels: List of labels. This is an optional parameter. You can specify one or more labels separated by commas in <key1>=<value1>,<key2>=<value2> format.

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 pool parameters in the configuration file:

    resource "yandex_organizationmanager_idp_userpool" "example_userpool" {
      organization_id   = "<organization_ID>"
      name              = "<pool_name>"
      description       = "<pool_description>"
      default_subdomain = "<default_domain>"
      labels            = {
        <key> = "<value>"
      }
    }
    

    Where:

    • organization_id: ID of the organization you want to create a user pool in.

    • name: 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: User pool description. This is an optional parameter.

    • default_subdomain: Default domain. It will be used if no other domains are associated with the pool.

    • labels: List of labels. This is an optional parameter.

    For more information about the yandex_organizationmanager_idp_userpool resource parameters, see the 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.

    Terraform will create all the required resources. You can check the new resources and their settings either in Yandex Identity Hub or using this CLI command:

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

Use the Userpool.Create REST API method for the Userpool resource or the UserpoolService/Create gRPC API call.

See alsoSee also

  • Add local users
  • Associating a domain

Was the article helpful?

Previous
Setting up a domain in an identity federation
Next
Updating a user pool
© 2026 Direct Cursus Technology L.L.C.