list(options?: MemberListOptions): Promise<Page<MemberResource>>Returns one page of everyone who has accepted membership of the workspace, as items plus the raw pagination envelope. Each row carries the member id that update, remove and the product access routes expect, the assigned role, and the underlying user.
search matches a member name, email or role name, and roleId keeps only the members holding that role. Pending invites are not members and never show up in these rows: read them from the invites namespace.
Example
const page = await envless.members.list({ limit: 50 })
for (const member of page.items) console.log(member.id, member.role?.name, member.user?.email)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
options.limit | number | No | Rows per page, a whole number from 1 to 100. |
options.offset | number | No | Rows to skip before the page starts. |
options.search | string | No | Case insensitive substring match on the member name, email or role name. |
options.roleId | string | No | Only members holding this role, by the role id from roles.list. |
options.signal | AbortSignal | No | Cancels the request. |
Returns
Page<MemberResource> with items and the pagination envelope.
Reads the members collection. list returns one page as { items, pagination }, listAll collects every page into an array, and iterate streams one item at a time without buffering the whole set.
Worth knowing
- The API reads the whole member set and paginates it in memory, so
pagination.totalCountis exact. usercan be null when the user record cannot be resolved.roleis always populated for a real member.- A
limitabove 100 or a fractionaloffsetfails with 400request.invalid_paginationanderror.fieldnames the culprit.
Required scopes
members:read
Underlying endpoint
GET /members
Request and response schema, every error code, and a live playground.
In Python
envless.members.list()
The same method in envless-sdk, the Python SDK, with the same request, retries and errors.
In Ruby
Envless.members.list
The same method in envless-sdk, the Ruby gem, with the same request, retries and errors.
In PHP
$envless->members->list()
The same method in envless/sdk, the PHP SDK, with the same request, retries and errors.