Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 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
    • Billing management in Yandex 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. Setting up access to a user pool

Setting up access to a user pool

Written by
Yandex Cloud
Improved by
ilya
Updated at November 2, 2026
View as Markdown

To grant access to a pool, assign roles to subjects. Learn what roles the service has and assign the required ones.

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, click User pools and select a user pool.
  3. Navigate to the Access rights tab.
  4. Click Assign roles.
  5. In the window that opens, select the group, user, or service account you need to grant access to the user pool.
  6. Click Add role and select a role. Add other roles as needed.
  7. Click Save.

Alert

The set-access-bindings command for assigning multiple roles completely overwrites access permissions for the resource. All roles previously assigned for this resource will be deleted.

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.

  1. View the description of the CLI command for assigning roles for a user pool:

    yc organization-manager idp userpool set-access-bindings --help
    
  2. Get the list of user pools and their IDs:

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

    Where --organization-id is the ID of the organization you need the list of user pools for.

  3. Get the ID of the user, service account, or group to which you are assigning roles for the user pool.

  4. Use the yc organization-manager idp userpool set-access-bindings command to assign the following roles:

    yc organization-manager idp userpool set-access-bindings \
      --id <pool_ID> \
      --access-binding role=<role>,subject=<subject_type>:<subject_ID>
    

    Where:

    • --id: ID of the user pool to grant access to.

    • role: ID of the role you need to assign.

    • subject: Subject getting the role.

      Subject designations

      To indicate a subject, use a combination of its type and unique ID, i.e., <subject_type>:<ID>. Here is how you can designate a subject:

      Subject type

      Subject designation

      userAccount

      userAccount:<user_ID>

      serviceAccount

      serviceAccount:<service_account_ID>

      federatedUser

      federatedUser:<user_ID>

      group

      group:<group_ID>

      system

      system:allAuthenticatedUsers

      (All authenticated users group)

      system:allUsers

      (All users group)

      system:group:organization:<organization_ID>:users

      (All users in organization X group)

      system:group:federation:<federation_ID>:users

      (All users in federation N group)

      system:group:userpool:<pool_ID>:users

      (All users in userpool P group)

    Provide a separate --access-binding parameter for each role. Here is an example:

    yc organization-manager idp userpool set-access-bindings \
      --id <pool_ID> \
      --access-binding role=<role1>,service-account-id=<service_account_ID> \
      --access-binding role=<role2>,service-account-id=<service_account_ID> \
      --access-binding role=<role3>,service-account-id=<service_account_ID>
    

Alert

The setAccessBindings method for assigning multiple roles completely overwrites access permissions for the resource. All roles previously assigned for this resource will be deleted.

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

Provide the following in the request:

  • Role in the accessBindings[].roleId parameter.

  • ID of the subject getting the role for the user pool in the accessBindings[].subject.id parameter.

  • Type of the subject getting the role for the user pool in the accessBindings[].subject.type parameter.

    Subject designations

    To indicate a subject, use a combination of its type and unique ID in the subject.type and subject.id fields of the request. Here are possible combinations:

    subject.type

    subject.id

    userAccount

    <user_ID>

    serviceAccount

    <service_account_ID>

    federatedUser

    <user_ID>

    group

    <group_ID>

    system

    allAuthenticatedUsers

    (All authenticated users group)

    allUsers

    (All users group)

    group:organization:<organization_ID>:users

    (All users in organization X group)

    group:federation:<federation_ID>:users

    (All users in federation N group)

    group:userpool:<pool_ID>:users

    (All users in userpool P group)

Was the article helpful?

Previous
Getting a list of users in a pool
Next
Setting up a password policy
© 2026 Direct Cursus Technology L.L.C.