Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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
      • Overview
      • Creating a group
      • Getting the group ID
      • Adding members
      • Editing a group
      • Configuring group management access
      • Granting permissions to a group
      • Viewing user groups
      • Deleting members
      • Deleting a group
    • Syncing users and groups with Active Directory
    • Billing management in Yandex Identity Hub
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • Yandex Identity Hub Sync Agent release notes

In this article:

  • Assigning a role
  • Assigning multiple roles
  • Revoking a role
  1. Step-by-step guides
  2. Managing user groups
  3. Configuring group management access

Configuring group management access

Written by
Yandex Cloud
Updated at August 17, 2026
View in Markdown
  • Assigning a role
  • Assigning multiple roles
  • Revoking a role

You can grant access to a user group to:

  • Yandex account users
  • Federated users
  • Local users
  • Service accounts
  • Other user groups

To do this, assign roles for the group. To choose the ones you need, learn about the service's roles.

Assigning a roleAssigning a role

Cloud Center UI
CLI
Terraform
API
  1. Log in to Yandex Identity Hub using an administrator or organization owner account.
  2. In the left-hand panel, select Groups and click the row with the name of the group you need.
  3. Navigate to the Group access rights tab.
  4. Click Assign roles.
  5. Select the group, user, or service account you need to grant access to the group. Use search, if required.
  6. Click Add role and select the roles that you need to assign to the group.
  7. 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.

To grant access permissions for a user group:

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

    yc organization-manager group add-access-binding --help
    
  2. Get a list of user groups with their IDs:

    yc organization-manager group list \
      --organization-id <organization_ID>
    
  3. Get the ID of the user, service account, or user group you need to grant access to the group.

  4. Use the yc organization-manager group add-access-binding command to assign the following role:

    yc organization-manager group add-access-binding \
      --id <group_ID> \
      --role <role> \
      --subject <subject_type>:<subject_ID>
    

    Where:

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

    • --role: Role ID.

    • --subject: Subject getting the role.

      Subject designations

      To indicate a subject, use the --subject parameter in <subject_type>:<ID> format. For some subject types, the Yandex Cloud CLI provides separate parameters instead of --subject, where you only need to specify the subject name or ID without the type. Possible subject designations and the corresponding CLI parameters:

      Subject type

      Subject designation

      Yandex Cloud CLI parameter

      userAccount

      userAccount:<user_ID>

      --user-account-id or --user-yandex-login

      serviceAccount

      serviceAccount:<service_account_ID>

      --service-account-id or --service-account-name

      federatedUser

      federatedUser:<user_ID>

      --user-account-id

      group

      group:<group_ID>

      --group-members

      system

      system:allAuthenticatedUsers

      (All authenticated users group)

      --all-authenticated-users

      system:allUsers

      (All users group)

      —

      system:group:organization:<organization_ID>:users

      (All users in organization X group)

      --organization-users

      system:group:federation:<federation_ID>:users

      (All users in federation N group)

      --federation-users

      system:group:userpool:<pool_ID>:users

      (All users in userpool P group)

      —

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

  1. Get the ID of the user, service account, or user group you need to grant access to the group.

  2. Describe the parameters of the roles you assign in the configuration file:

    resource "yandex_organizationmanager_group_iam_member" "editor" {
      group_id = "<group_ID>"
      role     = "<role_ID>"
      member   = "<subject>"
    }
    

    Where:

    • group_id: User group ID.

    • role: Role. This is a required setting.

    • member: Subject getting the role. This is a required setting.

      Subject designations

      To indicate a subject, use a combination of its type and unique ID, i.e., <subject_type>:<ID>. 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)

    For more on the properties of the yandex_organizationmanager_group_iam_member resource, see this provider guide.

  3. Create the resources:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You 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.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

With this done, the specified subjects will get their roles for the user group. You can check the role assignment using the Cloud Center UI.

To assign a role for a user group to a subject, use the updateAccessBindings REST API method for the Group resource or the GroupService/UpdateAccessBindings gRPC API call and provide the following in the request:

  • ADD value in the accessBindingDeltas[].action parameter to add a role.

  • Role in the accessBindingDeltas[].accessBinding.roleId parameter.

  • ID of the subject getting the role in the accessBindingDeltas[].accessBinding.subject.id parameter.

  • Type of the subject getting the role in the accessBindingDeltas[].accessBinding.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. 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)

Assigning multiple rolesAssigning multiple roles

Cloud Center UI
CLI
Terraform
API
  1. Log in to Yandex Identity Hub as the organization administrator or owner.
  2. In the left-hand panel, select Groups and click the line with the group name.
  3. Navigate to the Group access rights tab.
  4. Click Assign roles.
  5. Select the user, group, or service account you need to grant access to the group. Use search, if required.
  6. Click Add role and select the roles that you need to assign to the group.
  7. Click Save.

Alert

The set-access-bindings command for assigning multiple roles completely rewrites access permissions for the resource. All current resource roles 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.

To assign multiple roles for a user group:

  1. Make sure the resource has no important roles assigned before proceeding:

    yc organization-manager group list-access-bindings \
      --id <group_ID>
    
  2. View the description of the CLI command for assigning roles:

    yc organization-manager group set-access-bindings --help
    
  3. Get a list of user groups with their IDs:

    yc organization-manager group list
    
  4. Get the ID of the user, service account, or user group you need to grant access to the group.

  5. Use the yc organization-manager group set-access-bindings command to assign the following roles:

    yc organization-manager group set-access-bindings \
      --id <group_ID> \
      --access-binding role=<role>,subject=<subject_type>:<subject_ID>
    

    Where:

    • --id: ID of the user group 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>. 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 group set-access-bindings \
      --id ins672qpemb4******** \
      --access-binding role=<role1>,subject=serviceAccount:<service_account_ID> \
      --access-binding role=<role2>,subject=serviceAccount:<service_account_ID> \
      --access-binding role=<role3>,subject=serviceAccount:<service_account_ID>
    

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

To assign multiple roles for a user group:

  1. Describe the parameters of the roles you assign in the configuration file:

    resource "yandex_organizationmanager_group_iam_member" "role1" {
      group_id = "<group_ID>"
      role     = "<role1>"
      member   = "<subject_type>:<subject_ID>"
    }
    
    resource "yandex_organizationmanager_group_iam_member" "role2" {
      group_id = "<group_ID>"
      role     = "<role2>"
      member   = "<subject_type>:<subject_ID>"
    }
    
    resource "yandex_organizationmanager_group_iam_member" "role3" {
      group_id = "<group_ID>"
      role     = "<role3>"
      member   = "<subject_type>:<subject_ID>"
    }
    

    Where:

    • group_id: User group ID.

    • role: Role you want to assign.

    • member: Subject getting the role.

      Subject designations

      To indicate a subject, use a combination of its type and unique ID, i.e., <subject_type>:<ID>. 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)

    For more on the properties of the yandex_organizationmanager_group_iam_member resource, see this provider guide.

  2. Create the resources:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You 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.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

With this done, the specified subject will get several roles for the user group. You can check role assignments using the Cloud Center UI.

Alert

The setAccessBindings method for assigning multiple roles completely rewrites access permissions for the resource. All current resource roles will be deleted.

To assign several roles for a user group to a subject, use the setAccessBindings REST API method for the Group resource or the GroupService/SetAccessBindings gRPC API call. In your request, provide an array of objects, each one matching a particular role and containing the following data:

  • Role in the accessBindings[].roleId parameter.

  • ID of the subject getting the roles in the accessBindings[].subject.id parameter.

  • Type of the subject getting the roles 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. 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)

Revoking a roleRevoking a role

Cloud Center UI
CLI
Terraform
API
  1. Log in to Yandex Identity Hub as the organization administrator or owner.

  2. In the left-hand panel, select Groups and click the line with the group name.

  3. Navigate to the Group access rights tab.

  4. To revoke roles:

    1. In the row with the user, service account, or group, click and select Configure access.
    2. Click next to the roles you want to revoke.
    3. Click Save.
  5. To revoke all roles, in the row with the user, service account, or group, click and select Revoke access. Confirm the action.

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. See the description of the CLI command to revoke a role:

    yc organization-manager group remove-access-binding --help
    
  2. Get a list of user groups with their IDs:

    yc organization-manager group list \
      --organization-id <organization_ID>
    
  3. Get the ID of the user, service account, or user group you are revoking a role from.

  4. Use the yc organization-manager group remove-access-binding command to revoke the role from the subject:

    yc organization-manager group remove-access-binding \
      --id <group_ID> \
      --role <role> \
      --subject <subject_type>:<subject_ID>
    

    Where:

    • --id: ID of the user group to which access was granted.

    • --role: ID of the role you want to revoke.

    • --subject: Subject to revoke the role from.

      Subject designations

      To indicate a subject, use the --subject parameter in <subject_type>:<ID> format. For some subject types, the Yandex Cloud CLI provides separate parameters instead of --subject, where you only need to specify the subject name or ID without the type. Possible subject designations and the corresponding CLI parameters:

      Subject type

      Subject designation

      Yandex Cloud CLI parameter

      userAccount

      userAccount:<user_ID>

      --user-account-id or --user-yandex-login

      serviceAccount

      serviceAccount:<service_account_ID>

      --service-account-id or --service-account-name

      federatedUser

      federatedUser:<user_ID>

      --user-account-id

      group

      group:<group_ID>

      --group-members

      system

      system:allAuthenticatedUsers

      (All authenticated users group)

      --all-authenticated-users

      system:allUsers

      (All users group)

      —

      system:group:organization:<organization_ID>:users

      (All users in organization X group)

      --organization-users

      system:group:federation:<federation_ID>:users

      (All users in federation N group)

      --federation-users

      system:group:userpool:<pool_ID>:users

      (All users in userpool P group)

      —

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

To revoke a role from a user, service account, or user group:

  1. Open the Terraform configuration file and remove the part containing the yandex_organizationmanager_group_iam_member resource for the role you want to revoke.

    resource "yandex_organizationmanager_group_iam_member" "editor" {
      group_id = "<group_ID>"
      role     = "<role_ID>"
      member   = "<subject_type>:<subject_ID>"
    }
    

    Where:

    • group_id: User group ID.

    • role: Role being revoked. This is a required setting.

    • member: Subject to revoke the role from. This is a required setting.

      Subject designations

      To indicate a subject, use a combination of its type and unique ID, i.e., <subject_type>:<ID>. 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)

  2. Apply the changes:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You 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.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

The role will be revoked from the subject you indicated. You can check the role is no longer assigned using the Cloud Center UI.

To revoke a role for a user group from a subject, use the updateAccessBindings REST API method for the Group resource or the GroupService/UpdateAccessBindings gRPC API call and provide the following in the request:

  • REMOVE in the accessBindingDeltas[].action parameter to revoke the role.

  • Role in the accessBindingDeltas[].accessBinding.roleId parameter.

  • ID of the subject to revoke the role from in the accessBindingDeltas[].accessBinding.subject.id parameter.

  • Type of the subject to revoke the role from in the accessBindingDeltas[].accessBinding.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. 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
Editing a group
Next
Granting permissions to a group
© 2026 Direct Cursus Technology L.L.C.