Skip to content
Get started

List

client.users.list(RequestOptionsoptions?): UserListResponse { data }
GET/users

Lists all users for the workspace

ReturnsExpand Collapse
UserListResponse { data }

List of users

data: Array<Data>
id: string

Unique user ID

externalId: string

External ID for the user

role: string

Role of the user

List

import Fragment from '@fragment-dev/ts-node';

const client = new Fragment();

const users = await client.users.list();

console.log(users.data);
{
  "data": [
    {
      "id": "user_abc123",
      "externalId": "user_ext_123",
      "role": "admin"
    }
  ]
}
Returns Examples
{
  "data": [
    {
      "id": "user_abc123",
      "externalId": "user_ext_123",
      "role": "admin"
    }
  ]
}