Hi,
How can I get the user list based on skills? Thanks in advance.
Hi,
How can I get the user list based on skills? Thanks in advance.
Hello,
You can use Search user (POST /api/v2/users/search) to retrieve a list of users configured with specific skills (using the skill name).
If you need to retrieve additional information about the user, you can set the supported values in the "expand" array attribute (routingStatus, presence, conversationSummary, outOfOffice, geolocation, station, authorization, lasttokenissued, authorization.unusedRoles, team, profileSkills, certifications, locations, groups, skills, languages, languagePreference, employerInfo, biography).
This first request body is about retrieving users who are active (from configuration standpoint - i.e. active, inactive, deleted).
And who have (TestSkill1 OR TestSkill2) assigned to them (you can set up to 50 values in the "values" attribute).
{
"sortOrder": "ASC",
"sortBy": "id",
"pageSize": 100,
"pageNumber": 1,
"expand": ["routingStatus", "presence", "skills"],
"query": [
{
"values": ["active"],
"fields": ["state"],
"type": "EXACT"
},
{
"values": ["TestSkill1","TestSkill1"],
"fields": ["routingSkills"],
"type": "EXACT"
}
]
}
This second request body is about retrieving users who are active (from configuration standpoint - i.e. active, inactive, deleted).
And who have (TestSkill1 AND TestSkill2) assigned to them (you can set up to 10 filters in the "query" attribute array).
{
"sortOrder": "ASC",
"sortBy": "id",
"pageSize": 100,
"pageNumber": 1,
"expand": ["routingStatus", "presence", "skills"],
"query": [
{
"values": ["active"],
"fields": ["state"],
"type": "EXACT"
},
{
"value": "TestSkill1",
"fields": ["routingSkills"],
"type": "EXACT"
},
{
"value": "TestSkill2",
"fields": ["routingSkills"],
"type": "EXACT"
}
]
}
Regards,
Thanks Jerome. It worked.
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.