---
title: "Get tenants for a user attribute"
method: GET
path: "/v2/user-attributes/{userAttributeId}/tenants"
tags: ["User attributes"]
---

# Get tenants for a user attribute

`GET /v2/user-attributes/{userAttributeId}/tenants`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/user-attributes/{userAttributeId}/tenants`
- Auth: HTTP bearer

Get a list of tenants that have a specific user attribute defined, and the assigned value for the user attribute.

  ### Usage notes
  - Retrieve the **userAttributeId** by calling the [/v2/user-attributes](https://help.sigmacomputing.com/reference/list-user-attributes) endpoint.

## Path parameters

- `userAttributeId` string, required

## Query parameters

- `page` string
- `limit` number, double

## Response `200`

The response body.

- UserAttributesGetUserAttributeTenantAssignmentsResponse200
  - `entries` V2UserAttributesUserAttributeIdTenantsGetResponsesContentApplicationJsonSchemaEntriesItems[], required
    - `tenantOrganizationId` string, required: Unique identifier of the tenant.
    - `value` V2UserAttributesUserAttributeIdTenantsGetResponsesContentApplicationJsonSchemaEntriesItemsValue, required: Assigned value.
      - `type` 'string', required: Type of user attribute.
      - `val` string, required: Value of the user attribute.
    - `createdBy` string, required: The identifier of the user who created this object.
    - `updatedBy` string, required: The identifier of the user or process that last updated this object.
    - `createdAt` string, date-time, required: When the object was created.
    - `updatedAt` string, date-time, required: When the object was last updated.
  - `nextPage` string, nullable, required
  - `total` number, double

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
