cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1375
Views
0
Helpful
2
Replies

UCCE - Finesse 11.5 API /api/User/userid Authentication Recommendation

rdediana
Cisco Employee
Cisco Employee

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>

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

dekwan
Cisco Employee
Cisco Employee

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

yes. worked like a charm! TY!