Application-level
Retrieve
GET /applications/<application_pk>/users/
Description
Retrieves a list of users that have access to the specified application.
Please note, by default, this endpoint will only act on applications created via the same push api credentials. Please contact Jobylon support team if permission for all company applicants is required.
Response
Name | Type | Description |
|---|---|---|
count | integer | Total number of results |
next | string (URL) | Link to the next page |
previous | string (URL) | Link to the previous page |
results | array | Collection of user objects with access to the company |
Exceptions
Status | Description |
|---|---|
403 | Permission denied |
405 | Method not supported |
Example
Request
curl -i \
-X GET "$HOST/$API_VERSION/applications/1/users/" \
-H "X-App-Id: $APP_ID" \
-H "X-App-Key: $APP_KEY" \
-H "Content-Type: application/json"Response
{
"count": 6,
"next": "$HOST/$API_VERSION/applications/1/users/?page=4",
"previous": "$HOST/$API_VERSION/applications/1/users/?page=2",
"results": [
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 1,
"is_agency_user": false,
"last_name": "Kula",
"role": "admin"
},
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 2,
"is_agency_user": false,
"last_name": "Kula",
"role": "owner"
},
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 3,
"is_agency_user": false,
"last_name": "Kula",
"role": "job_owner"
},
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 4,
"is_agency_user": true,
"last_name": "Kula",
"role": "collaborator"
},
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 5,
"is_agency_user": false,
"last_name": "Kula",
"role": "viewer"
},
{
"email_primary": "[email protected]",
"emails": ["[email protected]", "[email protected]"],
"first_name": "Kalle",
"id": 6,
"is_agency_user": false,
"last_name": "Kula",
"role": "application_interviewer"
}
]
}