Legacy Dev Forum Posts

 View Only

Sign Up

Evaluation Query - Different results with same endpoints but different customers, data is redacted?

  • 1.  Evaluation Query - Different results with same endpoints but different customers, data is redacted?

    Posted 06-05-2025 18:14

    Ronald_Tsang | 2018-10-18 04:44:41 UTC | #1

    Hi!

    I'm attempting to access to the data associated to an evaluations based upon an agent ID, i'm using the REST endpoint via POSTMAN

    https://api.{{environment}}/api/v2/quality/evaluations/query?agentUserId=****&pageSize=1

    { "entities": [ { "id": "******", "neverRelease": false, "redacted": true } ], "pageSize": 1, "pageNumber": 1, "total": 66, "selfUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=1", "nextUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=2", "lastUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=66", "firstUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=1", "pageCount": 66 }

    Where as another customer with the same endpoint provides more meaningful data like this:

    { "entities": [ { "id": "********", "conversation": { "id": "**********", "selfUri": "/api/v2/conversations/********" }, "evaluationForm": { "id": "**********", "name": "Blanked Name", "published": true, "selfUri": "/api/v2/quality/publishedforms/evaluations/********" }, "evaluator": { "id": "^^^^^^^^^^^^^^^^^^^^^^^", "selfUri": "/api/v2/users/^^^^^^^^^^^^^^^^^^^^^^^" }, "agent": { "id": "^^^^^^^^^^^^^^^^^^^^^^^", "selfUri": "/api/v2/users/^^^^^^^^^^^^^^^^^^^^^^^" }, "status": "FINISHED", "agentHasRead": true, "releaseDate": "2018-02-23T03:29:29.580Z", "assignedDate": "2017-11-01T01:06:25.015Z", "changedDate": "2018-08-27T03:13:09.130Z", "neverRelease": false, "selfUri": "/api/v2/quality/conversations/*********" } ], "pageSize": 1, "pageNumber": 1, "total": 10, "nextUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=2", "lastUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=10", "selfUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=1", "firstUri": "/api/v2/quality/evaluations/query?pageSize=1&pageNumber=1", "pageCount": 10 }

    I suspect that there's some sort of feature within purecloud that's hiding the results/details of this query. How can I advise the customer to enable it.


    tim.smith | 2018-10-18 14:33:00 UTC | #2

    The redacted property is documented as:

    Is only true when the user making the request does not have sufficient permissions to see evaluation

    Check the user making the first request. It sounds like they're missing permissions to view the evaluation.


    Ronald_Tsang | 2018-10-21 22:19:19 UTC | #3

    Thanks Tim

    The customer has confirmed that I've got the following permissions

    • UI > Supervisor Agent Details > View
    • Directory > User > View
    • Quality > Evaluation > View

    Yet, I'm still seeing the redacted property.

    Is there any additional permission that I'm required to have to see the data?


    tim.smith | 2018-10-22 17:33:07 UTC | #4

    That API doesn't document requiring any specific permissions, other than the note about redacted results mentioned above. Please open a case with PureCloud Care to investigate why results are being redacted even though you have permission to view evaluations. It sounds like a bug with the API, or at a minimum, the documentation needs to be fixed.


    system | 2018-11-22 17:33:08 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3762