> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting a tenant ID in Nebius AI Cloud

A [tenant](./overview#tenants) in Nebius AI Cloud has a name and ID. For some actions, you need to provide your tenant ID.

## Prerequisites

<Tip>
  You do not need to complete any prerequisites if you use the web console.
</Tip>

To get a tenant ID using the CLI, [install](../cli/install) and [configure](../cli/configure) the Nebius AI Cloud CLI.

## How to get a tenant ID

To get the tenant ID:

<Tabs group="interfaces">
  <Tab title="Web console">
    1. In the [web console](https://console.nebius.com), expand the top-left list of tenants.
    2. Next to the tenant's name, click <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/button-vellipsis.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e80b8e57c43bfd117679262e6a1334ad" width="12" height="24" data-path="_assets/button-vellipsis.svg" /> → <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/copy.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e7f23591f2e46ebae45634aa995aaa9f" width="16" height="16" data-path="_assets/copy.svg" /> **Copy tenant ID**.
  </Tab>

  <Tab title="CLI">
    Run the following command:

    ```bash theme={null}
    nebius iam whoami --format json \
      | jq -r '.user_profile.tenants[0].tenant_id'
    ```

    The output contains the tenant ID. If you have multiple tenants, the command will return the ID of your first tenant as shown in the [web console](https://console.nebius.com) when you expand the top-left list of tenants. To get the ID of another tenant, change the array index. For example, to get the second tenant:

    ```bash theme={null}
    nebius iam whoami --format json \
      | jq -r '.user_profile.tenants[1].tenant_id'
    ```

    Alternatively, list all tenants that you have access to:

    ```bash theme={null}
    nebius iam tenant list
    ```

    In the output, find the tenant's `metadata.id` value to get its ID.
  </Tab>
</Tabs>
