AnsweredAssumed Answered

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

Question asked by rdediana on Jan 19, 2017
Latest reply on Jan 19, 2017 by rdediana

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>

Outcomes