Hello, I use mediasense API 11.5.
My finesse user can't get session infos of his team by request query API getSessionBySessionId.
here is code:
1. signIn a finesse user:
var request = require("request");
var options = { method: 'POST',
url: 'https://frbznicmmds1a.cc.tel.mcra.fr:8440/ora/authenticationService/authentication/signIn',
headers:
{
'Content-Type': 'application/json' },
body:
{ requestParameters: { username: '7134017', password: '7134017' },
authenticationProviders: [ 'FINESSE' ] },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
I get the response:
{
"responseMessage": "Success: Your request was successfully completed.",
"responseCode": 2000,
"deleteButtonConfig": "true",
"inbrowserPlaybackEnabled": "true",
"lineNameDisplayConfig": "true",
"supervisorAccessConfig": "true",
"archiveSearchEnabled": "true",
"agentDataDisplayConfig": {
"loginNameDisplayConfig": "true",
"loginIdDisplayConfig": "true",
"teamIdDisplayConfig": "true",
"lastNameDisplayConfig": "true",
"teamNameDisplayConfig": "true",
"firstNameDisplayConfig": "true"
}
}
I have a JSESSIONID=54EA24641AE25679AD7964AE54269BB2
when I use this JSESSIONID to get the query getSessionBySessionId with the code:
var request = require("request");
var options = { method: 'GET',
url: 'https://frbznicmmds1a.cc.tel.mcra.fr:8440/ora/queryService/query/getSessionBySessionId',
qs: { value: '6616c61efa95f1' },
headers:
{
Cookie: 'JSESSIONID=54EA24641AE25679AD7964AE54269BB2',
JSESSIONID: '54EA24641AE25679AD7964AE54269BB2' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
I have the response:
{
"responseMessage": "Success: No results were found for this client request.",
"responseCode": 2001
}.
but when I use a user who can see all of use, I can get the session info by sessionid.
somebody can help me? Thank you.