JSON-format request samples
This page contains the JSON-format request message body samples that are referred to in the Example section of the Authorization decisions page.
Permit
Copy this content to a new file named request_permit.json
to use it in the authorization decision example.
{
"Request": {
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "employee"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
},
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": true
}
]
}
}
}
Deny
Copy this content to a new file named request_deny.json
to use it in the authorization decision example.
{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": false
}
]
},
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "consultant"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
}
}
}
NotApplicable
Copy this content to a new file named request_notapplicable.json
to use it in the authorization decision example.
{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": false
}
]
}
}
}
Indeterminate
Copy this content to a new file named request_indeterminate.json
to use it in the authorization decision example.
{
"Request": {
"Environment": {
"Attribute": [
{
"AttributeId": "isAllowed",
"Value": [
false,
[]
]
}
]
},
"AccessSubject": {
"Attribute": [
{
"AttributeId": "role",
"Value": "consultant"
}
]
},
"Resource": {
"Attribute": [
{
"AttributeId": "document_id",
"Value": "companypolicy"
}
]
},
"Action": {
"Attribute": [
{
"AttributeId": "idaction",
"Value": "view"
}
]
}
}
}