A tenant in Nebius AI Cloud has a name and ID. For some actions, you need to provide your tenant ID.
Prerequisites
You do not need to complete any prerequisites if you use the web console.
To get a tenant ID using the CLI, install and configure the Nebius AI Cloud CLI.
How to get a tenant ID
To get the tenant ID:
- In the web console, expand the top list of tenants.
- Next to the tenant’s name, click
→
Copy tenant ID.
Run the following command: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 when you expand the top list of tenants. To get the ID of another tenant, change the array index. For example, to get the second tenant:nebius iam whoami --format json \
| jq -r '.user_profile.tenants[1].tenant_id'
Alternatively, list all tenants that you have access to:In the output, find the tenant’s metadata.id value to get its ID.