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

# List Tenant Memberships

> List the users that are members of a tenant, ordered by user ID ascending, each with its role in the tenant. Disabled users are only returned when the caller is an organization admin or a tenant admin. Paginated: pass the `next` value of a response (the ID of the last user of the page) as `from` to get the following page; `next` is null once a page comes back empty. Requires read permission on the members of the tenant.

&#x20;Required API key permission: **Read Tenant Admin**


## OpenAPI

````yaml firework-v2-openapi get /firework/v2/tenants/{tenant_id}/users
openapi: 3.0.1
info:
  description: >

    Manage and access Firework resources.


    Requests are authenticated with API tokens, which are obtained using an API
    key:


    1. Generate an API key from the [Profile
    page](https://app.flare.io/#/profile).

    2. Send a `POST` request to `https://api.flare.io/tokens/generate` with the
    `Authorization: <api-key>` header to get an API token. API tokens expire
    after 1 hour.

    3. Call the API endpoints with the `Authorization: Bearer <api-token>`
    header.


    See [Authentication](https://api.docs.flare.io/concepts/authentication) for
    details.
  title: Firework API
  version: v2
servers:
  - url: https://api.flare.io/
security:
  - BearerAuth: []
tags:
  - description: >-
      The authenticated user, its API keys, organizations, tenants, onboarding
      and usage.
    name: Account
  - description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
    name: Events
  - description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
    name: Identifiers
  - description: Report groups, reports, their sections, schedules and delivery channels.
    name: Reports
paths:
  /firework/v2/tenants/{tenant_id}/users:
    get:
      tags:
        - Account
      summary: List users of a tenant
      description: >-
        List the users that are members of a tenant, ordered by user ID
        ascending, each with its role in the tenant. Disabled users are only
        returned when the caller is an organization admin or a tenant admin.
        Paginated: pass the `next` value of a response (the ID of the last user
        of the page) as `from` to get the following page; `next` is null once a
        page comes back empty. Requires read permission on the members of the
        tenant.
      operationId: get_tenant_users_api
      parameters:
        - description: ID of the tenant.
          in: path
          name: tenant_id
          required: true
          schema:
            type: integer
        - description: Maximum number of users to return (default 20).
          in: query
          name: size
          schema:
            default: 20
            type: integer
        - description: >-
            Pagination cursor: the `next` value returned with the previous page;
            only users with a higher ID are returned.
          in: query
          name: from
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantUsers'
          description: Lists users for the specified tenant, ordered by id.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
          description: >-
            The members of the tenant are not visible to the caller (code
            `NOT_FOUND`).
components:
  schemas:
    TenantUsers:
      properties:
        next:
          description: >-
            Cursor to send in the next request to continue after this page, or
            `null` when no further page is available.
          type: integer
        items:
          description: Results of the current page.
          items:
            $ref: '#/components/schemas/TenantUser'
          type: array
      type: object
    HttpError:
      properties:
        message:
          description: Human-readable description of the error.
          type: string
        code:
          description: Machine-readable error code.
          type: string
      type: object
    TenantUser:
      properties:
        id:
          description: ID of the user.
          type: integer
        name:
          description: First name of the user.
          type: string
        surname:
          description: Surname of the user.
          type: string
        email:
          description: Email address of the user.
          type: string
        is_readonly:
          description: Whether the role of the user in the tenant is `viewer`.
          type: boolean
        role:
          description: Role of the user in the tenant.
          enum:
            - viewer
            - editor
            - admin
          example: viewer
          type: string
        is_disabled:
          description: Whether the account of the user is disabled.
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.