Get all users in an organization
GET/v1/organizations/:organizationId/users
Get all users in an organization
Request
Path Parameters
Query Parameters
Possible values: >= 1
Default value: 1
Page number starting from 1.
Possible values: >= 1
and <= 100
Default value: 10
Limit the number of results returned. Default is 10.
Possible values: [OWNER
, ADMIN
, MEMBER
]
The role of the user within the organization.
Possible values: [INVITED
, ACCEPTED
]
The user's status in the organization.
Responses
- 200
- 404
Successfully fetched all users and their roles in the organization.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
users object[]required
List of users and their roles within the organization.
user object
The unique identifier of the user.
The email of the user.
Possible values: [OWNER
, ADMIN
]
The role of the user within the organization.
Possible values: [INVITED
, ACCEPTED
]
The user's status in the organization.
metadata object
The current page number.
Number of items per page.
Total number of items.
The next page number, or null if this is the last page.
The previous page number, or null if this is the first page.
{
"users": [
{
"user": {
"id": "123456789",
"email": "user@example.com"
},
"role": "OWNER",
"state": "INVITED"
}
],
"metadata": {
"currentPage": 1,
"limit": 10,
"total": 100,
"nextPage": 2,
"previousPage": null
}
}
Organization not found