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. Revoking a user's role

Revoking a user's role

Written by
Yandex Cloud
Updated at May 26, 2025

If you want to deny a user access to a resource, revoke the relevant roles for this resource and for resources that grant inherited access rights. For more information on access management in Yandex Cloud, see the Yandex Identity and Access Management documentation.

The role can be revoked by a user with the organization-manager.admin or organization-manager.organizations.owner role.

Cloud Center interface
CLI
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. Find the required user in the list. If required, use the search bar or filter.

  4. In the row with the user, click and select Assign bindings. In the window that opens:

    1. Click next to a role to delete it.

    2. Click Save.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

  1. View the roles and assignees for the resource:

    yc <service_name> <resource> list-access-bindings <resource_name_or_ID>
    

    Where:

    • <service_name>: Name of the service the resource belongs to, e.g., organization-manager.
    • <resource>: Resource category. For an organization, it is always organization.
    • <resource_name_or_ID>: Resource name or ID. You can specify the resource name or ID. For an organization, use its technical name.

    For example, view the roles and assignees in an organization with the bpf3crucp1v2******** ID:

    yc organization-manager organization list-access-bindings bpf3crucp1v2********
    

    Result:

    +------------------------------------------+--------------+----------------------+
    |                 ROLE ID                  | SUBJECT TYPE |      SUBJECT ID      |
    +------------------------------------------+--------------+----------------------+
    | organization-manager.organizations.owner | userAccount  | aje3r40rsemj******** |
    | organization-manager.admin               | userAccount  | aje6o61dvog2******** |
    +------------------------------------------+--------------+----------------------+
    
  2. To delete access permissions, run this command:

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

    Where:

    • --role: ID of the role to revoke, e.g., organization-manager.admin.
    • <subject_type>: Subject type to revoke a role from.
    • <subject_ID>: Subject ID.

    For example, to revoke a role from a user with the aje6o61dvog2******** ID:

    yc organization-manager organization remove-access-binding bpf3crucp1v2******** \
      --role organization-manager.admin \
      --subject userAccount:aje6o61dvog2********
    
  1. View the roles and assignees for the resource using the listAccessBindings method. For example, to view the roles in the organization with the bpf3crucp1v2******** ID:

    export ORGANIZATION_ID=bpf3crucp1v2********
    export IAM_TOKEN=<IAM_token>
    curl \
      --header "Authorization: Bearer ${IAM_TOKEN}" \
      "https://organization-manager.api.cloud.yandex.net/organization-manager/v1/organizations/${ORGANIZATION_ID}:listAccessBindings"
    

    Result:

    {
    "accessBindings": [
    {
      "subject": {
      "id": "aje6o61dvog2********",
      "type": "userAccount"
      },
      "roleId": "organization-manager.admin"
    }
    ]
    }
    
  2. Create the request body, e.g., in the body.json file. In the request body, specify access permissions to delete. For example, revoke the organization-manager.admin role from the aje6o61dvog2******** user:

    {
      "accessBindingDeltas": [{
        "action": "REMOVE",
        "accessBinding": {
          "roleId": "organization-manager.admin",
          "subject": {
            "id": "aje6o61dvog2********",
            "type": "userAccount"
          }
        }
      }]
    }
    
  3. Revoke a role by deleting the specified permissions:

    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"
    

See alsoSee also

Assigning a role to a user

Was the article helpful?

Previous
Viewing roles assigned in an organization
Next
All tutorials
Yandex project
© 2025 Yandex.Cloud LLC