cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
269
Views
0
Helpful
1
Replies

how can a supervisor get the agent's password or token when he want to change the state of an agent

windleaf5188
Beginner
Beginner

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.

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

dekwan
Cisco Employee
Cisco Employee

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers