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
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • 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
      • Adding a user
      • Getting user info
      • Updating local user data
      • Changing a local user password
      • Viewing user groups
      • Activating a user
      • Deactivating a user
      • Viewing user logs
      • Managing user sessions
      • Deleting a user account
      • Leaving an organization
    • 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:

  • Deleting a user with a Yandex account
  • Deleting a federated user
  • Deleting a local user
  1. Step-by-step guides
  2. Managing users
  3. Deleting a user account

Deleting a user account

Written by
Yandex Cloud
Updated at November 2, 2026
View in Markdown
  • Deleting a user with a Yandex account
  • Deleting a federated user
  • Deleting a local user

An account can be deleted from an organization by a user with the organization-manager.admin or organization-manager.organizations.owner role. To learn how to grant a role to a user, see Assigning a role to a user.

Tip

The deletion of a user account from an organization cannot be reversed. To restore a previously deleted user, add them to the organization again.

Deleting a user with a Yandex accountDeleting a user with a Yandex account

To delete a Yandex account user from an organization:

Cloud Center UI
CLI
API
  1. Navigate to Yandex Identity Hub and log in using an administrator or organization owner account.

  2. In the left-hand panel, select Users and select the user you want to delete in the list that opens.

    Optionally, use the search bar or filter at the top of the page.

  3. In the row with the user, click and select Delete.

  4. In the window that opens, confirm user deletion from the organization.

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 command description:

    yc organization-manager user remove --help
    
  2. Delete the user's membership in the organization:

    yc organization-manager user remove \
      --organization-id <organization_ID> \
      --subject-id <user_ID>
    

    Specify the organization ID and user ID. Both parameters are required for this example.

Use the deleteMembership REST API method for the User resource or the UserService/DeleteMembership gRPC API call.

Deleting a federated userDeleting a federated user

To delete a federated user from the organization:

Cloud Center UI
CLI
Terraform
API
  1. Navigate to Yandex Identity Hub and log in using an administrator or organization owner account.

  2. In the left-hand panel, select Users and select the user you want to delete in the list that opens.

    Optionally, use the search bar or filter at the top of the page.

  3. In the row with the user, click and select Delete.

  4. In the window that opens, confirm user deletion from the organization.

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 command description:

    yc organization-manager user remove --help
    
  2. Delete the user's membership in the organization:

    yc organization-manager user remove \
      --organization-id <organization_ID> \
      --subject-id <user_ID>
    

    Specify the organization ID and user ID. Both parameters are required for this example.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the guides on the Terraform website or its mirror.

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. In a configuration that controls the federated user, delete that user's yandex_organizationmanager_saml_federation_user_account section and links to it. This deletes the user's membership in the organization but not their account with the identity provider.

    For more information on the yandex_organizationmanager_saml_federation_user_account resource, see this provider guide.

  2. Apply the changes after reviewing the list of resources you want to delete in the plan:

    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.

Use the deleteMembership REST API method for the User resource or the UserService/DeleteMembership gRPC API call.

Note

Once you delete a federated user from the organization, the user gets deleted from the federation and releases used up quotas. If your federation is set up to automatically create users, a deleted user can log in to the organization and become its member again. To prevent this, delete or block the user in your IdP.

Deleting a local userDeleting a local user

To delete a local user from an organization:

Cloud Center UI
CLI
Terraform
API
  1. Navigate to Yandex Identity Hub and log in using an administrator or organization owner account.

  2. In the left-hand panel, select Users and select the user you want to delete in the list that opens.

    Optionally, use the search bar or filter at the top of the page.

  3. In the row with the user, click and select Delete.

  4. In the window that opens, confirm user deletion from the organization.

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 for removing a user from a pool:

    yc organization-manager idp user delete --help
    
  2. To get a list of pools in an organization, provide its ID in this command:

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

    Result:

    +----------------------+--------------+-------------+----------------------+---------------------+
    |          ID          |     NAME     | DESCRIPTION |   ORGANIZATION ID    |     CREATED AT      |
    +----------------------+--------------+-------------+----------------------+---------------------+
    | ek0o6g0irskn******** | sample-pool1 |             | bpf2c65rqcl8******** | 2025-05-17 10:01:04 |
    | ek03mf01jr4z******** | sample-pool2 |             | bpf2c65rqcl8******** | 2025-06-28 16:30:23 |
    +----------------------+--------------+-------------+----------------------+---------------------+
    
  3. To get the IDs and other information about pool users, provide the pool ID in the following command:

    yc organization-manager idp user list \
      --userpool-id <user_pool_ID>
    

    Result:

    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    |          ID          |                USERNAME                | FULL NAME |     USERPOOL ID      | IS ACTIVE |     CREATED AT      |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    | aje3i1gq49n3******** | test-user1@test.ru.idp.yandexcloud.net | User 1    | ek0o6g0irskn******** | true      | 2025-10-07 10:41:54 |
    | aje0j5mts02t******** | test-user2@test.ru.idp.yandexcloud.net | User 2    | ek0o6g0irskn******** | false     | 2025-07-16 11:18:57 |
    +----------------------+----------------------------------------+-----------+----------------------+-----------+---------------------+
    
  4. To delete a local user from an organization, provide their ID in this command:

    yc organization-manager idp user delete <user_ID>
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the guides on the Terraform website or its mirror.

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. In a configuration that controls the local user, delete that user's yandex_organizationmanager_idp_user section and links to it. This deletes the user from the pool, not just their membership in the organization.

  2. Apply the changes after reviewing the list of resources you want to delete in the plan:

    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.

Use the delete REST API method for the User resource or the UserService/Delete gRPC API call.

Was the article helpful?

Previous
Managing user sessions
Next
Leaving an organization
© 2026 Direct Cursus Technology L.L.C.