[Yandex Cloud documentation](../../index.md) > [Yandex Identity Hub](../index.md) > [Step-by-step guides](index.md) > Managing user groups > Getting the group ID

# Getting group ID

Yandex Cloud assigns a unique ID to each group. With this ID, you can perform various operations with the group itself and the users belonging to it.

To find out the group ID:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Log in to [Cloud Center](https://center.yandex.cloud).
  1. In the left-hand panel, select ![groups](../../_assets/console-icons/persons.svg) **Groups**.
  1. Click ![copy](../../_assets/console-icons/copy.svg) next to the group's ID to copy it.

- 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. See the description of the CLI command for getting a list of groups:

      ```bash
      yc organization-manager group list --help
      ```

  1. To view a list of available groups, run this command by specifying the [organization ID](organization-get-id.md):
     
     ```bash
     yc organization-manager group list --organization-id <organization_ID>
     ```
     
     Result:
     
     ```text
     +----------------------+-----------------------+
     |          ID          |          NAME         |
     +----------------------+-----------------------+
     | ajetvnq2mil8******** | group1-technical-name |
     | aje0857jd5ul******** | group2-technical-name |
     | ajealo08t37i******** | group3-technical-name |
     +----------------------+-----------------------+
     ```
     
     Copy the ID of the organization you need from the `ID` column.

- API {#api}

  Use the [list](../api-ref/Group/list.md) REST API method for the [Group](../api-ref/Group/index.md) resource or the [GroupService/List](../api-ref/grpc/Group/list.md) gRPC API call.

{% endlist %}