List users
/api/v1/users
operationId: user.list
Base: https://portal.watcheye.com.au/api/v1/users
List all users on the account.
Filters
The following filters can be applied to the users list:
- enabled: Whether the user is enabled
Query parameters
| Field | Description |
|---|---|
page |
integer The page number to return |
per_page |
integer The number of users per page (defaults to 30, max 500) |
enabled |
boolean Only return enabled users
Note: The API will accept the string 'true' or the number 1 for true and the string 'false' or the number 0 for false as well as the boolean values. |
Responses
Users list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of users |
data[]. |
string (uuid) The user's UUID |
data[]. |
string The user's username |
data[]. |
string The user's first name |
data[]. |
string The user's last name |
data[]. |
string The user's email address |
data[]. |
string The user's phone number |
data[]. |
boolean Whether the user is enabled |
data[]. |
array of strings The user's roles
Note: This will be an empty array if the user has no special roles assigned to them. |
data[]. |
string (date-time) or null The user's last login timestamp (ISO 8601 format) |
data[]. |
string (date-time) The user's creation timestamp (ISO 8601 format) |
data[]. |
string (date-time) The user's last update timestamp (ISO 8601 format) |
meta |
object Metadata about the users list |
meta. |
integer The current page number |
meta. |
integer The number of users per page |
meta. |
integer The total number of users |
meta. |
integer The last page number |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs and audit trail. |