[Yandex Cloud documentation](../../../index.md) > [Yandex Identity Hub](../../index.md) > [Step-by-step guides](../index.md) > Managing domains > Getting domain information

# Viewing information about a domain


## Viewing information about a domain in a user pool {#userpool}

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Log in to [Yandex Identity Hub](https://center.yandex.cloud/organization) using an administrator or organization owner account.
  1. In the left-hand panel, click ![userpool](../../../_assets/organization/userpool.svg) **User pools**.
  1. Select the required pool from the [user pool](../../concepts/user-pools.md) list.
  1. Under **Domains**, click the [domain](../../concepts/domains.md) name.

- 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 viewing information about a [domain](../../concepts/domains.md) in a [user pool](../../concepts/user-pools.md):

     ```bash
     yc organization-manager idp userpool domain get --help
     ```

  1. Run this command:

      ```bash
      yc organization-manager idp userpool domain get <pool_ID> <domain>
      ```

- API {#api}

  Use the [Userpool.GetDomain](../../idp/api-ref/Userpool/getDomain.md) REST API method for the [Userpool](../../idp/api-ref/Userpool/index.md) resource or the [UserpoolService/GetDomain](../../idp/api-ref/grpc/Userpool/getDomain.md) gRPC API call.

{% endlist %}

## Viewing information about a domain in a federation {#federation}

{% list tabs group=instructions %}

- 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 viewing information about a [domain](../../concepts/domains.md) in a [federation](../../concepts/add-federation.md):

     ```bash
     yc organization-manager federation saml get-domain --help
     ```

  1. Run this command:

      ```bash
      yc organization-manager federation saml get-domain <federation_name_or_ID> \
        --domain <domain>
      ```

      Where `--domain` is your domain.

- API {#api}

  Use the [Federation.GetDomain](../../saml/api-ref/Federation/getDomain.md) REST API method for the [Federation](../../saml/api-ref/Federation/index.md) resource or the [FederationService/GetDomain](../../saml/api-ref/grpc/Federation/getDomain.md) gRPC API call.

{% endlist %}