Users
Search Users
Changed onSearch for users that match the provided search terms.
Keywords are searched for in the firstname, lastname, email, address, and phone numbers (home, work and mobile) fields.
get/v1/user/
Request
- Base URLhttps://developer.beta.salussafety.io
- URLhttps://developer.beta.salussafety.io/v1/user/
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: https://guardian.beta.salussafety.io/token
- or OAuth 2Authorization code: https://guardian.beta.salussafety.io/authorizeToken URL: https://guardian.beta.salussafety.io/token
Query parameters
querystring nullable
skipinteger nullable
limitinteger nullable
sort_direction'asc' | 'desc'
Direction to sort the sort_column - ascending or descending.
date_startstring date-time nullable
date_cut_offstring date-time nullable
sort_column'updated_at' | 'created_at' | 'id'
Which column to sort on
is_activeboolean nullable
role_idinteger nullable
is_adminboolean nullable
Response
Successful Response
Example response
{
"data": [
{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"email": "j.doe@example.com",
"companyUser": {
"id": 1275,
"role": {
"id": 4,
"name": "Foreman",
"slug": "foreman"
},
"isActive": true,
"employeeId": "EM00123",
"position": "Office Manager"
}
}
]
}Changes
- info
added the new optional
queryrequest parameteris_admin
- info