Risk rules allow you to define criteria for granted principal access that are a risk to your org.
Risk rules are used to support separation of duties (SOD) in Access Certifcations and Access Requests. See Separation of duties product documentation.
Creates a risk rule
Risk rule success response
The response to add a rule with duplicate name.
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "name": "Process and Approve Payment",
- "description": "Process and Approve Payment",
- "type": "SEPARATION_OF_DUTIES",
- "resources": [
- {
- "resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ"
}
], - "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6"
}
]
}
]
}
}
]
}
}
{- "id": "rulb0oNGTSWTBKOLGLNR",
- "name": "Process and Approve Payment",
- "description": "Process and Approve Payment",
- "type": "SEPARATION_OF_DUTIES",
- "status": "ACTIVE",
- "resources": [
- {
- "resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ"
}
], - "lastUpdated": "2022-05-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "created": "2022-05-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "name": "Approval Payments Role",
- "externalValue": "approve_payment_role",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6",
- "name": "Approve Payment",
- "externalValue": "approve_payment"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "name": "Buyer Role",
- "externalValue": "buyer_role",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6",
- "name": "Process Payment",
- "externalValue": "process_payment"
}
]
}
]
}
}
]
}, - "_links": {
}
}
Lists all risk rules
after | string The pagination cursor that points to the last record of the previous request. Example: after=00u68w6vzKLultXS97g6 |
filter | string <scim-filter> A filter expression that returns entries based on the
Example: filter=resourceOrn%20eq%20%22orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:oidc:0oafxqCAJWWGELFTYASJ%22 |
limit | integer [ 1 .. 200 ] Default: 20 The maximum number of records returned in a response |
Risk rules retrieved successfully
A request failed validation
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "data": [
- {
- "id": "rulb0oNGTSWTBKOLGLNR",
- "name": "Process and Approve Payment",
- "description": "Process and Approve Payment",
- "type": "SEPARATION_OF_DUTIES",
- "status": "ACTIVE",
- "resources": [
- {
- "resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ"
}
], - "lastUpdated": "2022-05-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "created": "2022-05-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "name": "Approval Payments Role",
- "externalValue": "approve_payment_role",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6",
- "name": "Approve Payment",
- "externalValue": "approve_payment"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "name": "Buyer Role",
- "externalValue": "buyer_role",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6",
- "name": "Process Payment",
- "externalValue": "process_payment"
}
]
}
]
}
}
]
}, - "_links": {
}
}
], - "_links": {
}, - "metadata": {
- "total": 10
}
}
Retrieves a risk rule
Risk rule success response
A request failed validation
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "id": "rulb0oNGTSWTBKOLGLNR",
- "name": "Process and Approve Payment",
- "description": "Process and Approve Payment",
- "type": "SEPARATION_OF_DUTIES",
- "status": "ACTIVE",
- "resources": [
- {
- "resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ"
}
], - "lastUpdated": "2022-05-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "created": "2022-05-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "name": "Approval Payments Role",
- "externalValue": "approve_payment_role",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6",
- "name": "Approve Payment",
- "externalValue": "approve_payment"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "name": "Buyer Role",
- "externalValue": "buyer_role",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6",
- "name": "Process Payment",
- "externalValue": "process_payment"
}
]
}
]
}
}
]
}, - "_links": {
}
}
Replaces a risk rule
The updatable attributes of a risk rule
Risk rule success response
A request failed validation
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "id": "rulb0oNGTSWTBKOLGLNR",
- "name": "Process and Approve Payment",
- "notes": "Process and Approve Payment note",
- "description": "Process and Approve Payment",
- "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6"
}
]
}
]
}
}
]
}
}
{- "id": "rulb0oNGTSWTBKOLGLNR",
- "name": "Process and Approve Payment",
- "description": "Process and Approve Payment",
- "type": "SEPARATION_OF_DUTIES",
- "status": "ACTIVE",
- "resources": [
- {
- "resourceOrn": "orn:okta:idp:00o11edPwGqbUrsDm0g4:apps:salesforce:0oafxqCAJWWGELFTYASJ"
}
], - "lastUpdated": "2022-05-24T14:15:22Z",
- "createdBy": "00ub0oNGTSWTBKOLGLNR",
- "created": "2022-05-24T14:15:22Z",
- "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR",
- "conflictCriteria": {
- "and": [
- {
- "name": "list1",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ONE",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espo3v6xlwdtEX2il1d6",
- "name": "Approval Payments Role",
- "externalValue": "approve_payment_role",
- "values": [
- {
- "id": "ento3v6xmkviXCltm1d6",
- "name": "Approve Payment",
- "externalValue": "approve_payment"
}
]
}
]
}
}, - {
- "name": "list2",
- "attribute": "principal.effective_grants",
- "operation": "CONTAINS_ALL",
- "value": {
- "type": "ENTITLEMENTS",
- "value": [
- {
- "id": "espxf36xlwdtEX2il23e",
- "name": "Buyer Role",
- "externalValue": "buyer_role",
- "values": [
- {
- "id": "ento3v6xk6nOq7lm51d6",
- "name": "Process Payment",
- "externalValue": "process_payment"
}
]
}
]
}
}
]
}, - "_links": {
}
}
Deletes a risk rule
Risk rule deleted successfully
A request failed validation
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "errorCode": "string",
- "errorId": "string",
- "errorSummary": "string",
- "errorLink": "string",
- "errorCauses": [
- {
- "errorSummary": "string",
- "reason": "string",
- "location": "string",
- "locationType": "string",
- "domain": "string"
}
]
}