01-19-2017 02:09 PM
Hello.
Just wanted to reach out the broader audience, to help understand whether below observation is an expected behaviour when using and authenticating against the finesse user Info API. Would it be more appropriate to create a Dev / App account with proper authorization for REST API interactions with finesse.
Scenario A:
Authentication failure when using the agent credentials to access agent Info using the REST API:
http://<IP>:8082/finesse/api/User/agent1
Basic Auth: agent1 / ******
<ApiErrors>
<ApiError>
<ErrorType>Invalid Authorization User Specified</ErrorType>
<ErrorData>agent1</ErrorData>
<ErrorMessage>The user specified in the authentication credentials and the uri don't match</ErrorMessage>
</ApiError>
</ApiErrors>
Scenario B:
Authentication success when using the admin credentials to access agent Info using the REST API:
http://<IP>:8082/finesse/api/User/agent1
Basic Auth: admin / ******
<User>
<dialogs>/finesse/api/User/47483650/Dialogs</dialogs>
<extension></extension>
<firstName>Agent</firstName>
<lastName>One</lastName>
<loginId>47483650</loginId>
<loginName>agent1</loginName>
<mediaType>1</mediaType>
<pendingState></pendingState>
<reasonCodeId>-1</reasonCodeId>
<roles>
<role>Agent</role>
</roles>
<settings>
<wrapUpOnIncoming>OPTIONAL</wrapUpOnIncoming>
</settings>
<state>LOGOUT</state>
<stateChangeTime>2017-01-17T22:14:24.482Z</stateChangeTime>
<teamId>1</teamId>
<teamName>Default</teamName>
<uri>/finesse/api/User/47483650</uri>
</User>
Solved! Go to Solution.
01-19-2017 03:31 PM
Hi,
Scenario 1 should work as far as agents being able to access their own information. For UCCE, you must use the agentId rather than the agent login name. So in your case, it should be /finesse/User/47483650
Thanx,
Denise
01-19-2017 03:31 PM
Hi,
Scenario 1 should work as far as agents being able to access their own information. For UCCE, you must use the agentId rather than the agent login name. So in your case, it should be /finesse/User/47483650
Thanx,
Denise
01-19-2017 03:50 PM
yes. worked like a charm! TY!
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