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
      • Assigning a user as an organization administrator
      • Assigning a role to a user
      • Assigning a role to a user group
      • Viewing roles assigned in an organization
      • Viewing a list of a subject's accesses
      • Revoking a user's role
    • 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
  1. Step-by-step guides
  2. Access management
  3. Assigning a role to a user

Assigning a role to a user

Written by
Yandex Cloud
Updated at August 17, 2026
View in Markdown

Organization administrators and owners can assign roles in Yandex Identity Hub. You can assign to users not just organization management roles but also roles for access to your organization's connected cloud resources.

For information on roles available in Yandex Cloud and their associated permissions, please review the Yandex Identity and Access Management documentation, Role reference Yandex Cloud.

Cloud Center UI
CLI
Terraform
API
  1. Log in to Yandex Identity Hub with an administrator or organization owner account.

  2. In the left-hand panel, select Access bindings.

  3. If the user already has at least one role, click and select Assign roles in the row with this user.

    If the user is not on the list, click Assign roles in the top-right corner. In the window that opens, select a user from the list or use the search bar.

  4. Click Add role and select the role you want to assign to the user. You can assign multiple roles.

    You can find the description of the available roles in the Yandex Identity and Access Management documentation in the Yandex Cloud role reference.

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

  1. Select the role you want to assign.

  2. Get the user ID.

  3. Assign a role using this command:

    yc organization-manager organization add-access-binding <organization_name_or_ID> \
      --role <role_ID> \
      --user-account-id <user_ID>
    

    Where:

    • --role: Role ID.
    • --user-account-id: User ID. You can also use the --user-yandex-login parameter and specify the username instead of the ID.

    For example, assign a user the administrator role for an organization with the b1gmit33ngp3******** ID:

    yc organization-manager organization add-access-binding b1gmit33ngp3******** \
      --role resource-manager.admin \
      --user-account-id aje6o61dvog2********
    

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. Select the role you want to assign.

  2. Get the user ID.

  3. Describe the roles you are assigning in the configuration file:

    Example of configuration file structure for assigning a role for an organization:

    resource "yandex_organizationmanager_organization_iam_binding" "editor" {
      organization_id = "<organization_ID>"
      role            = "<role_ID>"
      member          = "userAccount:<user_ID>"
    }
    

    Where:

    • organization_id: Organization ID.

    • role: Role you want to assign. For each role, you can only use one yandex_organizationmanager_organization_iam_binding resource.

    • 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_organization_iam_binding resource, see this provider guide.

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

The specified user will then get roles in the organization. You can check the role assignment using the Cloud Center UI.

To assign the user a role for the organization, use the updateAccessBindings REST API method for the Organization resource or the OrganizationService/UpdateAccessBindings gRPC API call.

  1. Select the role you want to assign.

  2. Get the user ID.

  3. Create the request body, e.g., in the body.json file. In the action property, enter ADD and specify the userAccount or federatedUser type and user ID under subject.

    body.json:

    {
      "accessBindingDeltas": [{
        "action": "ADD",
        "accessBinding": {
          "roleId": "<role_ID>",
          "subject": {
            "id": "<user_ID>",
            "type": "userAccount"
          }
        }
      }]
    }
    

    Where:

    • ADD in the accessBindingDeltas[].action parameter indicates you need to add a role.

    • accessBindingDeltas[].accessBinding.roleId: ID of the role you need to assign.

    • accessBindingDeltas[].accessBinding.subject.id: ID of the subject the role is assigned to.

    • accessBindingDeltas[].accessBinding.subject.type: Type of subject the role is assigned to.

      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)

  4. Assign the role. For example, for an organization with the bpf3crucp1v2******** ID:

    export ORGANIZATION_ID=bpf3crucp1v2********
    export IAM_TOKEN=<IAM_token>
    curl \
      --request POST \
      --header "Content-Type: application/json" \
      --header "Authorization: Bearer ${IAM_TOKEN}" \
      --data '@body.json' \
      "https://organization-manager.api.cloud.yandex.net/organization-manager/v1/organizations/${ORGANIZATION_ID}:updateAccessBindings"
    

In a similar way, you can assign roles for an organization to a service account.

Useful linksUseful links

  • Setting up service account access permissions
  • Setting up cloud access permissions
  • Setting up folder access permissions

Was the article helpful?

Previous
Assigning a user as an organization administrator
Next
Assigning a role to a user group
© 2026 Direct Cursus Technology L.L.C.