cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
529
Views
0
Helpful
4
Replies

Login Username or loginId CCE

r0nh
Level 1
Level 1

I am logging into CCE and initially get the SystemInfo then i check to see if the user exists.

im using  a sandbox with a pre created Agent 1

If i use the getter (this url) it returns the xml below. when i login with the agent1 (which has a login id of 123000) i get a different response. (see 2nd xml). If i use agent1 it has empty ext and does not have the Devices xml. Also the state is missing.

I read ALL the docs. It says in CCE to initially use a get command and it will respond and tell you the loginId.

Then from there you always use the loginId. 

unless i am totally wrong. anyone can help (this is my own app not the finesse web app)

NOTE I used wireshark and logged in with the  finesse web app, i watch all the traffic and it sends a url  

https://fin-pub-a-50.berlin.icm:8445/finesse/api/User/123000

and i cannot understand how it resolves the agent1 to 123000 . It doesn't seem to do any GET with the agent1 name to resolve the loginid first. Its like magic. But i am sure it isn't. lol 

Thanks

 

 

 

https://fin-pub-a-50.berlin.icm:8445/finesse/api/User/123000

Spoiler

 

<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n
<User>\n  
<dialogs>/finesse/api/User/123000/Dialogs</dialogs>\n  
<extension>1002</extension>\n  
<firstName>agent</firstName>\n  
<lastName>one</lastName>\n  
<loginId>123000</loginId>\n  
<loginName>agent1</loginName>\n  
<mediaType>1</mediaType>\n  
<pendingState></pendingState>\n  
<reasonCodeId>-1</reasonCodeId>\n  
<roles>\n    
<role>Agent</role>\n  
</roles>\n  
<settings>\n    
<wrapUpOnIncoming>OPTIONAL</wrapUpOnIncoming>\n    
<wrapUpOnOutgoing>OPTIONAL</wrapUpOnOutgoing>\n    
<deviceSelection>disabled</deviceSelection>\n  
</settings>\n  
<state>NOT_READY</state>\n  
<stateChangeTime>2023-01-10T21:33:48.156Z</stateChangeTime>\n  
<teamId>5000</teamId>\n  
<teamName>team1</teamName>\n  
<uri>/finesse/api/User/123000</uri>\n  
<wrapUpTimer>7200</wrapUpTimer>\n  
<activeDeviceId>SEP6001FFFF0002</activeDeviceId>\n  
<Devices>\n    
<Device>\n      
<deviceId>SEP6001FFFF0002</deviceId>\n      
<deviceType>308</deviceType>\n      
<deviceTypeName>Cisco 7961G-GE</deviceTypeName>\n    
</Device>\n  
</Devices>\n  
<skillTargetId>8475</skillTargetId>\n
</User>

 

NOTE; agent1 has a loginId of 123000

 

https://fin-pub-a-50.berlin.icm:8445/finesse/api/User/agent1

 

Spoiler
<User>\n  
<dialogs>/finesse/api/User/123000/Dialogs</dialogs>\n  
<extension></extension>\n  
<firstName>agent</firstName>\n  
<lastName>one</lastName>\n  
<loginId>123000</loginId>\n  
<loginName>agent1</loginName>\n  
<mediaType>1</mediaType>\n  
<pendingState></pendingState>\n  
<reasonCodeId>-1</reasonCodeId>\n  
<roles>\n    
<role>Agent</role>\n  
</roles>\n  
<settings>\n    
<wrapUpOnIncoming>OPTIONAL</wrapUpOnIncoming>\n    
<wrapUpOnOutgoing>OPTIONAL</wrapUpOnOutgoing>\n    
<deviceSelection>disabled</deviceSelection>\n  
</settings>\n  
<state>LOGOUT</state>\n  
<stateChangeTime>2023-01-10T21:33:17.878Z</stateChangeTime>\n  
<teamId>5000</teamId>\n  
<teamName>team1</teamName>\n  
<uri>/finesse/api/User/123000</uri>\n  
<wrapUpTimer>7200</wrapUpTimer>\n  
<skillTargetId>8475</skillTargetId>\n
</User>

 

 

4 Replies 4

r0nh
Level 1
Level 1

I did find  something in wireshark

it has a f_username: 123000 in the response header of SystemInfo

How is this possible.

I could be mistaken, but I think this is what you're running into/asking about?
https://community.cisco.com/t5/contact-center/how-to-fetch-agent-details-using-search-criteria-agentid-for/td-p/4071605

r0nh
Level 1
Level 1

Thanks for the reply but no not the same. 

I'm not sure I understand the issue. Are you asking why does Finesse use the loginID and NOT the userID?