Skip Navigation
Expand
403 Forbidden error received in response to a Rest API request
Answer ID 11537   |   Last Review Date 05/17/2020

Why am I receiving a 403 Forbidden error on my Rest API request?

Environment:

Oracle Field Service (OFS)

Issue:

I am using a new Application to get my Daily Extract files but the request is failing with 403 Forbidden error.

{
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
    "title": "Forbidden",
    "status": "403",
    "detail": "Authentication was provided, but the authenticated user is not permitted to perform the requested operation."
}

Resolution:

The error indicates that you don't have authorization to perform the request. Follow the steps below to grant permission.

1. In OFS, navigate to Configuration > Applications and select the application you are using for this request.

2. Under API access, locate the API (in this example Core API). Click to edit and select 'Available entities'.

Configuration > Applications > API Access. 'Available entities' option is highlighted for Core API.

3. Locate the entity related to the request and update the permission from 'Hidden' to 'Read-Only' (for this Daily Extract example), or Read-write (if applicable to the request you are sending).

Available entities screen. Read-only permission is highlighted for Daily Extract entity.

4. Click Submit. Click Save.