Integration

Get Involved. Join the Conversation.

Topic

    Salik Qureshi
    TimeEvents Rest API service is not accessibleAnswered
    Topic posted October 17, 2019 by Salik QureshiRed Ribbon: 250+ Points, tagged API, Integration, REST, Web Services 
    41 Views, 3 Comments
    Title:
    TimeEvents Rest API service is not accessible
    Summary:
    TimeEvents Rest API service is not accessible in efix-dev3
    Content:

    We are trying to call the rest service 'https://efix-dev3.fa.us6.oraclecloud.com/hcmCoreApi/resources/latest/timeEventRequests' in efix-dev3, but we are receiving '403 forbidden error'. We are able to access the same url in efix-test,efix-dev1. I have verified all the user access to the userid and everything looks good. I have attached the error screenshot, Input payload and the response.

    Can some one please help me on this issue. 

    Image:
    Document:
    Payload.txt (358 Bytes)
    Document:
    Response.txt (291 Bytes)

    Best Comment

    Salik Qureshi

    I got it working now. There was a privilege "Use REST Service - Time Events (HWM_REST_SERVICE_ACCESS_TIME_EVENTS_PRIV)" missing in the role. After adding this privilege i'm able to access this service. 

    Comment

     

    • Ravi Sankaran

      You dont have the necessary authorization for calling the API in this environment. You might want to try calliing this API from a stand alone client like Postman using the same credentials. You should be getting the same 403. You need to make sure the service integration account being used to consume this API has been granted the necessary roles for consuming this API

      Ravi

      • Salik Qureshi

        Thanks Ravi for your reply! When I compared the security roles and permission for the user id which I'm trying to call this service with the other working environment then I don't see any difference. So if it is working with the same roles and permission in efix-dev1 and efix-test then why it is not working in this efix-dev3 environment with same roles and permission. If you know any specific roles needed then please let me know. Currently I have attached the roles and permission which I have configured.

         

        Roles1.JPG (49KB)
    • Salik Qureshi

      I got it working now. There was a privilege "Use REST Service - Time Events (HWM_REST_SERVICE_ACCESS_TIME_EVENTS_PRIV)" missing in the role. After adding this privilege i'm able to access this service.