- The ranking is calculated based on the number of successfully completed (passed) trainings.
- The average score is used as a secondary factor for the ranking calculation.
- Users associated with an ANONYMOUS scope are excluded from the ranking system.
PassedTrainingsRanking object
On the API level user ranking based on the passed trainings is represented byPassedTrainingsRanking data type.
| Parameter | Type | Description |
|---|---|---|
rank | Int | Required. The user’s rank based on the number of passed trainings and an average score. |
averageScore | Float | Required. The average score obtained by the user for all completed (passed and failed) trainings. |
passedTrainingsNumber | Int | Required. The number of the trainings successfully passed by the user associated with the context. |
completedTrainingsNumber | Int | Required. The number of the trainings completed by the user associated with the context. |
Retrieve the ranking
UserContext API object contains property passedTrainingsRanking.
Also, ranking can be retrieved by calling the getUserPassedTrainingsRanking query.
It has one optional argument - userContextId. If it’s not set, the current API user context will be used by default.
The query returns a PassedTrainingsRanking object as a response.