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
Resources that the risk rule applies to
POST
curl -i -X POST \
https://okta-subdomain.pixtulate.com/governance/api/v1/risk-rules \
-H 'Content-Type: application/json' \
-d '{
"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"
}
]
}
]
}
}
]
}
}'Risk rule success response
The id of the Okta user who created the resource
The ISO 8601 formatted date and time when the resource was created
The ISO 8601 formatted date and time when the object was last updated
The id of the Okta user who last updated the object
Resources that the risk rule applies to
Response
{ "id": "rulb0oNGTSWTBKOLGLNR", "name": "Process and Approve Payment", "description": "Process and Approve Payment", "type": "SEPARATION_OF_DUTIES", "status": "ACTIVE", "resources": [ { … } ], "lastUpdated": "2022-05-24T14:15:22Z", "createdBy": "00ub0oNGTSWTBKOLGLNR", "created": "2022-05-24T14:15:22Z", "lastUpdatedBy": "00ub0oNGTSWTBKOLGLNR", "conflictCriteria": { "and": [ … ] }, "_links": { "self": { … } } }