Create a new campaign

post

/access-governance/access-reviews/20250331/campaigns

Creates a new Access or Ownership campaign.

Request

Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
  • Minimum Length: 1
    Maximum Length: 64
    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
Body ()
Details for the new campaign.
Root Schema : CreateCampaignDetails
Type: object
The information about new campaign.
Show Source
Nested Schema : criteria
Type: array
Maximum Number of Items: 20
The criteria for the campaign.
Show Source
Nested Schema : reviewExclusions
Type: array
Maximum Number of Items: 20
List of the review types which are excluded from campaign.
Show Source
  • Allowed Values: [ "ACCOUNT", "ROLE" ]
    The review type of a review task.
Nested Schema : Criteria
Type: object
The criteria to use as a filter.
Show Source
  • conditions
    Maximum Number of Items: 100
    Filter condition (these conditions have an AND binding between them).
  • subCriteria
    The list of values of the criteria.
  • Allowed Values: [ "ORGANIZATION", "JOB_CODE", "IDENTITY_LOCATION", "RESOURCE", "RESOURCE_LOCATION", "ENTITLEMENT", "ROLE", "DOMAIN", "COMPARTMENT", "CLOUD_PROVIDER", "POLICY", "POLICY_CREATED", "CUSTOM_ATTRIBUTE", "CUSTOM_ATTRIBUTE_VALUE", "IDENTITY_COLLECTION", "IC_CREATED", "TARGET_IDENTITY", "TARGET", "GLOBAL_IDENTITY", "AM_WORKFLOW", "NOT_REVIEWED_SINCE", "ACCESS_GUARDRAIL", "GRANTED_PERMISSION_TYPE", "TEMPORAL_TYPE" ]
    The type of the criteria.
  • value
    Maximum Number of Items: 500
    The list of values of the criteria (these values have an OR binding between them).
Nested Schema : conditions
Type: array
Maximum Number of Items: 100
Filter condition (these conditions have an AND binding between them).
Show Source
Nested Schema : subCriteria
Type: array
The list of values of the criteria.
Show Source
Nested Schema : value
Type: array
Maximum Number of Items: 500
The list of values of the criteria (these values have an OR binding between them).
Show Source
Nested Schema : Condition
Type: object
The information about Condition.
Show Source
Nested Schema : additionalAttributes
Type: object
Additional Properties Allowed
Show Source
Additional attributes for additional information related to the condition.
Nested Schema : BasicCondition
Type: object
The information about Condition.
Show Source
  • Allowed Values: [ "STRING", "NUMBER", "BOOLEAN", "DATE" ]
    Data type for the condition Identifier
  • Minimum Length: 1
    Maximum Length: 255
    Access Guardrails Identifier
  • Minimum Length: 1
    Maximum Length: 512
    Left hand side of the condition.
  • Allowed Values: [ "EQ", "NE", "GT", "LT", "GTE", "LTE", "BEFORE", "AFTER", "TILL", "FROM", "BETWEEN", "NOT_BETWEEN", "IN", "NOT_IN", "CONTAINS", "NOT_CONTAINS", "BEGINS_WITH", "NOT_BEGINS_WITH", "ENDS_WITH", "NOT_ENDS_WITH", "IS_NULL", "IS_NOT_NULL", "EQUAL_WITH_NULL" ]
    The operator for a access guardrail.
  • rhs
    Right hand side of the condition.
  • rhsUiDetails
    Right hand side details of the condition.
Nested Schema : BasicConditionCollection
Type: object
Collection of conditions.
Show Source
Nested Schema : rhs
Type: array
Right hand side of the condition.
Show Source
Nested Schema : rhsUiDetails
Type: array
Right hand side details of the condition.
Show Source
Nested Schema : UiDetail
Type: object
Ui detail for rendering values on UI
Show Source
Nested Schema : items
Type: array
List of condition.
Show Source
Back to Top

Response

Supported Media Types

200 Response

The campaign was created successfully.
Headers
  • For optimistic concurrency control. See `if-match`.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Campaign
Type: object
Summary of the AgcsCampaign.
Show Source
Nested Schema : InstanceWorkflow
Type: object
The workflow of an approval process instance.
Show Source
Nested Schema : criteria
Type: array
Maximum Number of Items: 20
The selection criteria for the campaign.
Show Source
Nested Schema : messages
Type: array
Maximum Number of Items: 50
The list of messages.
Show Source
Nested Schema : reviewExclusions
Type: array
Maximum Number of Items: 20
List of the review types which are excluded from campaign.
Show Source
  • Allowed Values: [ "ACCOUNT", "ROLE" ]
    The review type of a review task.
Nested Schema : reviewLevels
Type: array
Maximum Number of Items: 20
The list of review level details.
Show Source
Nested Schema : SelectionReview
Type: object
The selection count summary for the campaign.
Show Source
Nested Schema : stages
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 20
The approval workflow stages.
Show Source
Nested Schema : InstanceWorkflowStage
Type: object
The approval process instance stage.
Show Source
Nested Schema : approvers
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 20
The approvals required for the stage to complete.
Show Source
Nested Schema : InstanceWorkflowApprover
Type: object
The approvals required within the stage.
Show Source
Nested Schema : TemplateInstance
Type: object
Instance of an approval template.
Show Source
Nested Schema : parameterValues
Type: array
List of approval template parameter values.
Show Source
Nested Schema : TemplateParamTuple
Type: object
Value(s) for the template parameter identified by id.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    Description of the template parameter id.
  • Minimum Length: 1
    Maximum Length: 255
    The template parameter id. Unique within the template parameter list.
Nested Schema : CampaignCriteria
Type: object
The criteria filter.
Show Source
  • conditions
    Maximum Number of Items: 100
    Filter condition (these conditions have an AND binding between them).
  • criteriaValue
    Maximum Number of Items: 500
    The list of values of the criteria.
  • subCriteria
    Maximum Number of Items: 500
    The list of values of the Campaign criteria
  • Allowed Values: [ "ORGANIZATION", "JOB_CODE", "IDENTITY_LOCATION", "RESOURCE", "RESOURCE_LOCATION", "ENTITLEMENT", "ROLE", "DOMAIN", "COMPARTMENT", "CLOUD_PROVIDER", "POLICY", "POLICY_CREATED", "CUSTOM_ATTRIBUTE", "CUSTOM_ATTRIBUTE_VALUE", "IDENTITY_COLLECTION", "IC_CREATED", "TARGET_IDENTITY", "TARGET", "GLOBAL_IDENTITY", "AM_WORKFLOW", "NOT_REVIEWED_SINCE", "ACCESS_GUARDRAIL", "GRANTED_PERMISSION_TYPE", "TEMPORAL_TYPE" ]
    The type of the criteria.
Nested Schema : conditions
Type: array
Maximum Number of Items: 100
Filter condition (these conditions have an AND binding between them).
Show Source
Nested Schema : criteriaValue
Type: array
Maximum Number of Items: 500
The list of values of the criteria.
Show Source
Nested Schema : subCriteria
Type: array
Maximum Number of Items: 500
The list of values of the Campaign criteria
Show Source
Nested Schema : Condition
Type: object
The information about Condition.
Show Source
Nested Schema : additionalAttributes
Type: object
Additional Properties Allowed
Show Source
Additional attributes for additional information related to the condition.
Nested Schema : BasicCondition
Type: object
The information about Condition.
Show Source
  • Allowed Values: [ "STRING", "NUMBER", "BOOLEAN", "DATE" ]
    Data type for the condition Identifier
  • Minimum Length: 1
    Maximum Length: 255
    Access Guardrails Identifier
  • Minimum Length: 1
    Maximum Length: 512
    Left hand side of the condition.
  • Allowed Values: [ "EQ", "NE", "GT", "LT", "GTE", "LTE", "BEFORE", "AFTER", "TILL", "FROM", "BETWEEN", "NOT_BETWEEN", "IN", "NOT_IN", "CONTAINS", "NOT_CONTAINS", "BEGINS_WITH", "NOT_BEGINS_WITH", "ENDS_WITH", "NOT_ENDS_WITH", "IS_NULL", "IS_NOT_NULL", "EQUAL_WITH_NULL" ]
    The operator for a access guardrail.
  • rhs
    Right hand side of the condition.
  • rhsUiDetails
    Right hand side details of the condition.
Nested Schema : BasicConditionCollection
Type: object
Collection of conditions.
Show Source
Nested Schema : rhs
Type: array
Right hand side of the condition.
Show Source
Nested Schema : rhsUiDetails
Type: array
Right hand side details of the condition.
Show Source
Nested Schema : UiDetail
Type: object
Ui detail for rendering values on UI
Show Source
Nested Schema : items
Type: array
List of condition.
Show Source
Nested Schema : CriteriaValue
Type: object
The criteria value.
Show Source
Nested Schema : subCriteria
Type: array
Maximum Number of Items: 500
The list of values of the Campaign criteria.
Show Source
Nested Schema : Message
Type: object
Information about an event.
Show Source
Nested Schema : ReviewLevelDetails
Type: object
The details of a review level.
Show Source
Nested Schema : reviewerAttributes
Type: array
Maximum Number of Items: 20
The list of reviewer attributes (only when reviewerType is CUSTOM_OWNER or CLOUD_REVIEWER).
Show Source
Nested Schema : ReviewerAttribute
Type: object
The attributes of the reviewer.
Show Source
Nested Schema : Tally
Type: object
the tally.
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

409 Response

Conflict
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how to create a new campaign. In this example, you'll create an Identity Access Review for an organization.

Type Value
System Type Use scope to define the system type:
  • For Oracle Access Governance: AG
  • For Oracle Cloud Infrastructure: CLOUD_PROVIDER
  • For Oracle Identity Governance, use GOVERNANCE_SYSTEM
Type Use the following:
  • ACCESS: For running Access Reviews
  • OWNERSHIP: For running Ownership reviews.
Campaign Criteria Type for Access Reviews

ORGANIZATION, JOB_CODE, IDENTITY_LOCATION, RESOURCE, RESOURCE_LOCATION, ENTITLEMENT, ROLE, DOMAIN, COMPARTMENT, CLOUD_PROVIDER, POLICY, POLICY_CREATED, CUSTOM_ATTRIBUTE, CUSTOM_ATTRIBUTE_VALUE, IDENTITY_COLLECTION, IC_CREATED, TARGET_IDENTITY, TARGET, GLOBAL_IDENTITY, AM_WORKFLOW, NOT_REVIEWED_SINCE, ACCESS_GUARDRAIL, GRANTED_PERMISSION_TYPE, TEMPORAL_TYPE

For more information, see Types of Access Reviews Offered by Oracle Access Governance.

Refer Access Review Eligibility to understand eligible components for running Access Reviews.

cURL Request Example

curl -i -X POST \
   -H "Authorization:Bearer <your-access-token>" \
   -H "Content-Type:application/json" \
   -d \
'{
  "displayName": "QuarterlyCert_ExampleOrg_xxQ2",
  "description": "Quarterly identity access review for ExampleOrg",
  "type": "ACCESS",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "value": [
        "organization.displayName"
      ],
      "subCriteria": [
        {
          "type": "CUSTOM_ATTRIBUTE_VALUE",
          "value": [
            "EXAMPLE_ORG_xx"
          ]
        }
      ]
    }
  ],
  "ownerId": "globalId.xx51efbf-abxx-4f09-ae8x-7bcc0f9de5xx.18.a84836862e09xxba29e9002afd63a7fb",
  "reviewWorkflowId": "Guid_xx0bcda9-3076-4cb3-b797-14a7a99fb2xx",
  "justificationRule": "REQUIRE_FOR_ALL",
  "scope": "AG",
  "submissionType": "SUBMIT_NOW",
  "isRecurring": false,
  "isAccountReviewAllowed": true
}' \
 '<${service-instance-url}/access-governance/access-reviews/20250331/campaigns>'

Example Request Payload

{
  "displayName": "QuarterlyCert_ExampleOrg_xxQ2",
  "description": "Quarterly identity access review for ExampleOrg",
  "type": "ACCESS",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "value": [
        "organization.displayName"
      ],
      "subCriteria": [
        {
          "type": "CUSTOM_ATTRIBUTE_VALUE",
          "value": [
            "EXAMPLE_ORG_xx"
          ]
        }
      ]
    }
  ],
  "ownerId": "globalId.xx51efbf-abxx-4f09-ae8x-7bcc0f9de5xx.18.a84836862e09xxba29e9002afd63a7fb",
  "reviewWorkflowId": "Guid_xx0bcda9-3076-4cb3-b797-14a7a99fb2xx",
  "justificationRule": "REQUIRE_FOR_ALL",
  "scope": "AG",
  "submissionType": "SUBMIT_NOW",
  "isRecurring": false,
  "isAccountReviewAllowed": true
}

Example of the Response Code

It may take a few seconds to create a campaign. Do not try to abort the request.

You'll receive 200 OK response along with the following response body:

{
  "id": "ocid1.agcscampaign.oc1.iad.xxaaaaaaebkbezqayg6mhcklxxlm2dvab7woojhehwwmxxmaxiyyzt65bcfa",
  "displayName": "QuarterlyCert_ExampleOrg_xxQ2",
  "type": "ACCESS",
  "ownerId": "globalId.xx51efbf-abxx-4f09-ae8x-7bcc0f9de5xx.18.a84836862e09xxba29e9002afd63a7fb",
  "customReviewerId": null,
  "customReviewerName": null,
  "ownerName": "Example Ownerxx",
  "ownerUsername": null,
  "ownerEmail": null,
  "creatorId": "88b9690e_cxx4_4653_9535_70480031exx0",
  "reviewProgress": null,
  "scope": "AG",
  "status": "SCHEDULED",
  "timeStarted": "2025-08-06T14:11:24.346Z",
  "timeDue": "2025-08-06T14:11:24.346Z",
  "timeCreated": "2025-08-06T14:11:25.570Z",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "criteriaValue": [
        {
          "id": "organization.displayName",
          "name": "Organization Name",
          "subCriteria": [
            {
              "type": "CUSTOM_ATTRIBUTE_VALUE",
              "criteriaValue": [
                {
                  "id": null,
                  "name": "EXAMPLE_ORG_xx",
                  "subCriteria": null
                }
              ],
              "conditions": null,
              "subCriteria": null
            }
          ]
        }
      ],
      "conditions": null,
      "subCriteria": null
    }
  ],
  "reviewWorkflowId": "Guid_xx0bcda9-3076-4cb3-b797-14a7a99fb2xx",
  "reviewLevels": [],
  "approvalWorkflow": null,
  "selectionReview": null,
  "completionRule": null,
  "justificationRule": "REQUIRE_FOR_ALL",
  "description": "Quarterly identity access review for ExampleOrg",
  "isRecurring": false,
  "timeSeriesStarted": null,
  "frequency": "ONE_TIME",
  "seriesRecurrences": null,
  "messages": null,
  "submissionType": null,
  "isAccountReviewAllowed": true,
  "timeLastPendingGenerated": null
}
Back to Top