Validate data access for user
/fscmRestApi/resources/11.13.18.05/buyerPlanningSupplies/buyerPlanningSupplies/validateDataAccess
Request
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client doesn't specify this header in the request the server picks a default version for the API.
- application/json
object
-
ContextScope: string
Value that specifies scope of data access.
-
ContextValue: integer
(int64)
Value that uniquely identifies the value for mentioned context.
-
SecurityScope: string
Value that specifies security level for the user.
Response
- application/json
Default Response
object
-
HasAccess: boolean
Title:
HasAccess
Validate data access for user.
Examples
This example describes how to validate data access for a user.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/buyerPlanningSupplies/validateDataAccess"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{ "ContextScope": "ORGANIZATION", "ContextValue": 147201, "SecurityScope": "WRITE" }
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "HasAccess": true }