GET /api/users
200
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"firstname": "One",
"lastname": "User",
"mail": "userone@someware.com",
"admin": false,
"auth_source_id": 980190962,
"auth_source_name": "ldap-server",
"timezone": null,
"locale": null,
"last_login_on": "2009-10-12 21:50:04 UTC",
"created_at": "2019-09-11 14:58:27 UTC",
"updated_at": "2019-09-11 14:58:27 UTC",
"id": 980190962,
"login": "one",
"description": null,
"ssh_keys": [],
"default_location": null,
"locations": [
{
"id": 255093256,
"name": "Location 1"
}
],
"default_organization": null,
"organizations": [
{
"id": 447626438,
"name": "Organization 1"
}
],
"effective_admin": false
},
{
"firstname": "Scoped",
"lastname": "User",
"mail": "userscoped@someware.com",
"admin": false,
"auth_source_id": 980190962,
"auth_source_name": "ldap-server",
"timezone": null,
"locale": null,
"last_login_on": "2009-10-12 21:50:05 UTC",
"created_at": "2019-09-11 14:58:27 UTC",
"updated_at": "2019-09-11 14:58:27 UTC",
"id": 117925625,
"login": "scoped",
"description": null,
"ssh_keys": [],
"default_location": null,
"locations": [
{
"id": 255093256,
"name": "Location 1"
}
],
"default_organization": null,
"organizations": [
{
"id": 447626438,
"name": "Organization 1"
}
],
"effective_admin": false
}
]
}
| Param name | Description |
|---|---|
|
auth_source_ldap_id optional |
ID of LDAP authentication source Validations:
|
|
usergroup_id optional |
ID of user group Validations:
|
|
role_id optional |
ID of role Validations:
|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| admin | true, false | |
| description | text | |
| firstname | string | |
| last_login_on | datetime | |
| lastname | string | |
| location | string | |
| location_id | integer | |
| login | string | |
| string | ||
| organization | string | |
| organization_id | integer | |
| role | string | |
| role_id | integer | |
| usergroup | string |