Get all users for a competence
Resource URL
URL: competence/users
Parameters
string username | Username |
string password | Password |
int competenceId optional | Unique identifier of the competence |
int competenceExternalId optional | Unique external identifier of the competence. Either competenceId or competenceExternalIdmust be filled. |
Return value
The method returns a list of statuses for all the users that have a requirement or completion for competence. Each item in the list has the following properties:
userId | Id for the user |
userExternalId | External Id of the user. Null if no external Id is defined |
completionDate | yyyy-MM-dd - the date when competence was completed. Empty value indicates, that the competence is not yet completed |
validUntilDate | yyyy-MM-dd - if a competence has validity period this indicates the time it expires |
status | Status of the competence.
|
requirementReferenceId | Identifier of the requirement (if requirement exists) |
Example request
URL | |
POST DATA | competenceId=123456&username=username&password=secret |
{"users":
[
{
"userId":23518,
"userExternalId":null,
"status":"COMPLETED",
"requirementReferenceId":"41654228-9bd3-435f-9682-feee",
"completionDate":"2015-04-02",
"validUntilDate":null
},
{
"userId":136,
"userExternalId":null,
"status":"COMPLETED",
"requirementReferenceId":"eea234-3e58-4dd2-a634-0c54fd5c7dd2",
"completionDate":"2014-10-12",
"validUntilDate":"2016-10-12"
}
]
}