[Yandex Cloud documentation](../../index.md) > [Yandex Identity Hub](../index.md) > [Step-by-step guides](index.md) > Managing users > Leaving an organization

# Leaving an organization

If you are a [Yandex account](../../iam/concepts/users/accounts.md#passport) user, you can leave an organization on your own.

{% note info %}

This guide requires you to use the [CLI](../../cli/index.md) if one or more of the following conditions are true:
* The **Block users from viewing the list of organization members and their details** option is [enabled](hide-user-info.md) in the organization's settings.
* The `organization.denyUserListing` [access policy](../../iam/concepts/access-control/access-policies.md) applies, which prohibits viewing the organization's user list.

{% endnote %}

To leave an organization:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. If you are a member of several organizations, [select](manage-organizations.md#switch-to-another-org) the proper one.
  1. Go to [Yandex Identity Hub](https://center.yandex.cloud/organization).
  1. In the left-hand panel, select ![icon-users](../../_assets/console-icons/person.svg) **Users** and find your user account.

      Optionally, use the search bar or filter at the top of the page.
  1. In the row with the user, click ![icon-context-menu](../../_assets/console-icons/ellipsis.svg) and select ![trash-bin](../../_assets/console-icons/trash-bin.svg) **Delete**.
  1. In the window that opens, confirm that you would like to leave the organization.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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 description of the CLI command for leaving an organization:

     ```bash
     yc organization-manager organization leave --help
     ```

  1. To leave an organization, run this command by specifying the organization [ID](organization-get-id.md):

     ```bash
     yc organization-manager organization leave <organization_ID>
     ```

{% endlist %}

Please note: You will lose access to all clouds and other resources of the organization. To avoid this, you can [move](../../resource-manager/operations/cloud/change-organization.md) the cloud to another organization. To do this, you need the `resource-manager.clouds.owner` [role](../security/index.md#organization-manager-organizations-owner) for the cloud being transferred and the `organization-manager.organizations.owner` [role](../../resource-manager/security/index.md#resource-manager-clouds-owner) for the organization to transfer the cloud to.

To disable access to the clouds of the organization you are not going to leave, contact the appropriate cloud administrator.

If you have issues excluding a user from an organization, contact [support](https://center.yandex.cloud/support).