Skip to content

List

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

Lists all users.

ReturnsExpand Collapse
UserListResponse { data }

List of users.

data: Array<User { id, external_id, role } >
id: string

FRAGMENT generated unique ID.

external_id: string

User-provided unique ID.

role: string

Name of the user's role.

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",
      "external_id": "user_ext_123",
      "role": "admin"
    }
  ]
}
Returns Examples
{
  "data": [
    {
      "id": "user_abc123",
      "external_id": "user_ext_123",
      "role": "admin"
    }
  ]
}