Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Organization
  • Getting started
    • All guides
    • Subscribing a user to notifications
      • Overview
      • Assigning a user as organization administrator
      • Assigning a role to a user
      • Assigning a role to a user group
      • Viewing roles assigned in an organization
      • Revoking a user's role
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • 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 June 3, 2025

Organization administrators and owners can assign roles in Yandex Cloud Organization. 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, Yandex Cloud role reference.

Cloud Center interface
CLI
Terraform
API
  1. Log in to Yandex Cloud Organization 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 bindings in the row with this user.

    If the user is not on the list, click Assign bindings 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.

  1. Select the role you want to assign.

  2. Get the user ID.

  3. Assign the role using the command:

    yc <service_name> <resource> add-access-binding <resource_name_or_ID> \
      --role <role_ID> \
      --subject <subject_type>:<subject_ID>
    

    Where:

    • <service_name>: Name of the service for whose resource you assign the role, e.g., organization-manager.
    • <resource>: Resource category. For an organization, it is always organization.
    • <resource_name_or_ID>: Resource name or ID. For an organization, use its technical name.
    • --role: Role ID.
    • --subject: Type and ID of the subject getting the role.

    For example, this command assigns a user the administrator role for a directory with the b1gmit33ngp3******** ID:

    yc recource-manager folder add-access-binding b1gmit33ngp3******** \
      --role resource-manager.admin \
      --subject userAccount:aje6o61dvog2********
    

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

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

    resource "yandex_organizationmanager_organization_iam_binding" "editor" {
      organization_id = "<organization_ID>"
      role = "<role_ID>"
      members = [
        "federatedUser:<user_ID>",
      ]
    }
    

    Where:

    • organization_id: Organization ID.

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

    • members: Array of the IDs of users to assign the role to:

      • userAccount:<user_ID>: Yandex user account ID.
      • federatedUser:<user_ID>: Federated user ID.

    For more information about the resources you can create with Terraform, see the provider documentation.

  2. Create 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.

The specified user will then get roles in the organization. You can check the new role in the management console.

To assign a role, use the updateAccessBindings REST API method for the appropriate resource:

  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.

    {
      "accessBindingDeltas": [{
        "action": "ADD",
        "accessBinding": {
          "roleId": "<role_ID>",
          "subject": {
            "id": "gfei8n54hmfh********",
            "type": "userAccount"
          }
        }
      }]
    }
    
  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.

See alsoSee also

  • 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 organization administrator
Next
Assigning a role to a user group
Yandex project
© 2025 Yandex.Cloud LLC