Get All Back Office Users
Path parameters
-
The unique identifier for the business location.
Query parameters
-
page integer
Starting page of results, when paginating.
Default value is
0
. -
size integer
Number of results to return, when paginating.
Default value is
1000
. -
sort array[string]
Sort by field and direction.
Default value is
["userId,desc"]
. -
email string(email)
Filter on email address.
-
isActive boolean
Filter on active status.
-
startDate string(date-time)
Filter on user start date. The format should be
yyyy-MM-dd'T'HH:mm:ss
(ISO 8601 format). -
endDate string(date-time)
Filter on user end date. The format should be
yyyy-MM-dd'T'HH:mm:ss
(ISO 8601 format).
GET /staff/v1/businessLocations/{businessLocationId}/userTypes/BACK_OFFICE
curl \
-X GET https://api.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/userTypes/BACK_OFFICE \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"staff": [
{
"staffId": 1234,
"userTypes": [
"POS"
],
"firstName": "John",
"lastName": "Doe",
"email": "hello@example.com",
"active": true,
"createdOn": "2024-05-04T09:42:00+00:00",
"modifiedOn": "2024-05-04T09:42:00+00:00",
"businessId": 12345,
"businessLocationId": 1234567890,
"groups": [
{
"id": 1234,
"name": "Bar Staff"
}
],
"reportAccess": [
"STAFF_REPORT_OWN_ACCESS"
],
"roles": [
{
"id": 1234,
"name": "ROLE_CAN_LOGIN"
}
]
}
]
},
"links": {
"first": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
},
"self": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=1&size=1&sort=userId,desc"
},
"next": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=2&size=1&sort=userId,desc"
},
"last": {
"href": "https://api-trial.ikentoo.com/staff/v1/businessLocations/40570261078018/userTypes/POS?page=5&size=1&sort=userId,desc"
}
},
"page": {
"page": 1,
"size": 10,
"totalElements": 100,
"totalPages": 10
}
}