ā07-10-2017 01:12 AM
Hello, I use Finesse Cisco Finesse 11.5 API . I want to know how can a supervisor get the agent's password or token when he want to change the state(logout, ready,not ready) of an agent?
here is a request code for a supervisor logout the agent 7131000 :
var request = require("request");
var options = { method: 'PUT',
url: 'http://xxxxx/finesse/api/User/7131000',
headers:
{
authorization: 'Basic NzEzMTAwMDpmYmUxYnNlY2Vu',
'content-type': 'application/xml' },
body: '<User><state>LOGOUT</state></User>' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
In the anthorization, we should get the token or password of an agent,but I don't know how can a supervisor can get the token or password of an agent. Thank you.
Solved! Go to Solution.
ā07-10-2017 02:30 PM
Hi,
The supervisor cannot get the agent's password or token for security reasons.
If you take a look at the Change Agent State REST API, the security constraints show that "Supervisors can act on the User objects of agents who belong to their team." So, you just need to use the credentials of the supervisor for the REST API.
Thanx,
Denise
ā07-10-2017 02:30 PM
Hi,
The supervisor cannot get the agent's password or token for security reasons.
If you take a look at the Change Agent State REST API, the security constraints show that "Supervisors can act on the User objects of agents who belong to their team." So, you just need to use the credentials of the supervisor for the REST API.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide