Skip to main content

Get Staff list

ComplyFlow avatar
Written by ComplyFlow
Updated over a month ago

GET [ staff ]

Production Endpoint: https://app.complyflow.com.au/app/public/index.php/api/acu/staff 
Test Endpoint: https://test.complyflow.com.au/app/public/index.php/api/acu/staff

Overview

This endpoint returns the list of Staff users from the current organisation (i.e. Enterprise Client account).

Authentication instructions

Refer to the Authentication method for Authentication Methods (for Login and Logout).

Permissions Required

The user should possess the permissions below:

  • API User

  • Users have View Staff Permission (minimum)

Please also refer to the Permissions Overview guide.

Query parameters

FIELD

TYPE

DESCRIPTION

EXAMPLE

REQUIRED

DEFAULT

PATTERN

Site

integer

Site ID

1

No

null

\d+

PlantCat

integer

Plant Cat ID

1

No

null

\d+

status

integer

Staff status in Organisation

1

No

null

1 β†’ active

2 β†’ inactive

site_status

integer

Staff status on Site

1

No

null

1 β†’ active

2 β†’ inactive

Request Example

curl --location 'http://test.complyflow.com.au/app/public/index.php/api/acu/staff' \
--header 'Authorization: [...]' \
--header 'Cookie: [...]'

Response Example

The API Request returns a list of staff from the current organisation:

{
"token": "",
"data": {
"id": 692,
"first_name": "wr",
"last_name": "er",
"dob": null,
"mobile": "0356133611",
"gender": "Male",
"indigenous_status": "",
"date_created": "2020-03-04 19:42:18",
"people_custom1": null,
"address_street1": null,
"address_street2": null,
"address_suburb": null,
"address_region": null,
"postcode": null,
"address_country": null,
"emergency_contact_address_number": null,
"emergency_contact_address_street": null,
"emergency_contact_address_suburb": null,
"emergency_contact_address_state": null,
"emergency_contact_address_postcode": null,
"email": "cfdemo-sn-11231324@complyflow.com",
"training_courses": [
{
"id": 103,
"name": "Online Training B",
"status": "Completed",
"expiry_date": "2023-12-27",
"date_completed": "2023-12-22"
}
],
"staff_categories": [
{
"id": 148,
"name": "StaffA"
}
],
"hr_custom_fields": null,
"job_title": null,
"departments": null,
"sites": [
{
"site_id": 41,
"site_code": "a",
"site_name": "projecta"
},
{
"site_id": 42,
"site_code": "PROB 504",
"site_name": "BProjectB"
}
],
"account_status": "Request Pending",
"document_categories": [
{
"id": 163,
"name": "DocA",
"expiry_date": "2023-09-30"
}
],
"activation_deactivation_history": [
{
"action": "Activated",
"date": "2023-12-27",
"user": "Admin User"
},
{
"action": "Deactivated",
"date": "2024-06-15",
"user": "Admin User"
},
{
"action": "Activated",
"date": "2024-08-01",
"user": "Admin User"
}
]
},
}
Did this answer your question?