Skip to content
Get started

List

users.list() -> UserListResponse
GET/users

Lists all users for the workspace

ReturnsExpand Collapse
class UserListResponse:

List of users

data: List[Data]
id: str

Unique user ID

external_id: str

External ID for the user

role: str

Role of the user

List

from fragment import Fragment

client = Fragment()
users = client.users.list()
print(users.data)
{
  "data": [
    {
      "id": "user_abc123",
      "externalId": "user_ext_123",
      "role": "admin"
    }
  ]
}
Returns Examples
{
  "data": [
    {
      "id": "user_abc123",
      "externalId": "user_ext_123",
      "role": "admin"
    }
  ]
}