/organizations/{org_id}/membersList organization membersRetrieves a paginated list of members for the specified organization.
Parameters
org_idstringpathrequiredThe Neon organization ID
sort_bystringquerySort the members by the specified field. Defaults to `joined_at`.
cursorstringqueryA cursor to use in pagination. A cursor defines your place in the data list. Include `response.pagination.next` in subsequent API calls to fetch next page of the list.
sort_orderstringqueryDefines the sorting order of entities.
limitintegerqueryThe maximum number of members to return in the response
Responses
allOf · 2 options
membersarray of objectrequiredMembers of the organization, each combining membership details (role, status) with the associated user's identity.
Show child attributes
Show array items
memberobjectrequiredShow child attributes
idstring · uuidrequiredThe organization member's ID.
joined_atstring · date-timeTimestamp when the user joined the organization.
org_idstringrequiredThe Neon organization ID. Returned as `id` from `GET /users/me/organizations`.
rolestringrequiredOrganization member's role. `admin`: full administrative access. `editor` (and its legacy alias `member`): standard access governed by project permissions. `viewer` and `collaborator`: additional scoped project roles. Some values may not be available for all organizations.
user_idstring · uuidrequiredThe Neon user ID.
userobjectrequiredShow child attributes
deactivated_atstring · date-timeTimestamp of when the user account was deactivated. Absent for active users. When present, the UI should render a "Deactivated" badge inline next to the member.
emailstring · emailrequiredEmail address of the organization member's user account.
has_mfabooleanWhether the member has MFA (TOTP) enabled
paginationobjectTo paginate the response, issue an initial request with `limit` value. Then, add the value returned in the response `.pagination.next` attribute into the request under the `cursor` query parameter to the subsequent request to retrieve next page in pagination. The contents on cursor `next` are opaque, clients are not expected to make any assumptions on the format of the data inside the cursor.
Show child attributes
nextstringCursor for the next page of results. Pass it as the `cursor` query parameter on the next request. Absent on the last page.
sort_bystringField by which the results were sorted, echoing the request's sort_by parameter.
sort_orderstringSort order active for this page. Pass back as `sort_order` in the next request to maintain consistent ordering. Valid values are `asc` and `desc`.
{
"members": [
{
"member": {
"id": "d57833f2-d308-4ede-9d2e-468d9d013d1b",
"joined_at": "2024-02-23T17:42:25Z",
"org_id": "my-organization-morning-bread-81040908",
"role": "admin",
"user_id": "b107d689-6dd2-4c9a-8b9e-0b25e457cf56"
},
"user": {
"email": "user1@email.com"
}
},
{
"member": {
"id": "5fee13ac-957b-40cd-8de0-4d494cc28e28",
"joined_at": "2024-02-21T16:42:25Z",
"org_id": "my-organization-morning-bread-81040908",
"role": "member",
"user_id": "6df052ac-ca9a-4321-8963-b6507b2d7dee"
},
"user": {
"email": "user2@email.com"
}
}
],
"pagination": {
"next": "eyJtZW1iZXJfaWQiOiI1ZmVlMTNhYy05NTdiLTQwY2QtOGRlMC00ZDQ5NGNjMjhlMjgiLCJzb3J0X2J5Ijoiam9pbmVkX2F0In0=",
"sort_by": "joined_at",
"sort_order": "desc"
}
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}