Okta · Arazzo Workflow

Okta Create Policy with Rule and Activate

Version 1.0.0

Create a policy, add a rule to it, and activate the policy.

1 workflow 1 source API 1 provider
View Spec View on GitHub IdentityWorkforce IdentityCustomer IdentityAuthenticationAuthorizationSingle Sign-OnMulti-Factor AuthenticationIdentity GovernancePrivileged AccessAI AgentsCross-App AccessMCPPlatformArazzoWorkflows

Provider

okta

Workflows

create-policy-with-rule
Create a policy, attach a rule, and activate it.
Creates a policy of the supplied type, creates a rule under it, then activates the policy.
3 steps inputs: oktaApiToken, policyDescription, policyName, policyType, ruleName outputs: policyId, ruleId
1
createPolicy
Create a policy of the supplied type without activating it yet.
2
createRule
Create a rule under the newly created policy to define its behavior.
3
activatePolicy
Activate the policy now that it has a rule, so it begins taking effect.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Okta Create Policy with Rule and Activate
  summary: Create a policy, add a rule to it, and activate the policy.
  description: >-
    Builds a complete Okta policy in one flow. The workflow creates a policy of
    a given type, adds a rule under that policy to define its behavior, and then
    activates the policy so it begins to take effect. The new policy id is
    chained from creation into both the rule creation and the activation steps.
    Every step spells out its request inline, including the SSWS API token
    header, so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: policyApi
  url: ../openapi/okta-policy-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-policy-with-rule
  summary: Create a policy, attach a rule, and activate it.
  description: >-
    Creates a policy of the supplied type, creates a rule under it, then
    activates the policy.
  inputs:
    type: object
    required:
    - oktaApiToken
    - policyType
    - policyName
    - ruleName
    properties:
      oktaApiToken:
        type: string
        description: Okta API token used for the SSWS Authorization header.
      policyType:
        type: string
        description: The policy type (e.g. OKTA_SIGN_ON, PASSWORD, ACCESS_POLICY, MFA_ENROLL).
      policyName:
        type: string
        description: The display name of the policy.
      policyDescription:
        type: string
        description: An optional description for the policy.
      ruleName:
        type: string
        description: The display name of the rule to attach to the policy.
  steps:
  - stepId: createPolicy
    description: >-
      Create a policy of the supplied type without activating it yet.
    operationId: createPolicy
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: activate
      in: query
      value: false
    requestBody:
      contentType: application/json
      payload:
        type: $inputs.policyType
        name: $inputs.policyName
        description: $inputs.policyDescription
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      policyId: $response.body#/id
  - stepId: createRule
    description: >-
      Create a rule under the newly created policy to define its behavior.
    operationId: createPolicyRule
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: policyId
      in: path
      value: $steps.createPolicy.outputs.policyId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.ruleName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ruleId: $response.body#/id
  - stepId: activatePolicy
    description: >-
      Activate the policy now that it has a rule, so it begins taking effect.
    operationId: activatePolicy
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: policyId
      in: path
      value: $steps.createPolicy.outputs.policyId
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    policyId: $steps.createPolicy.outputs.policyId
    ruleId: $steps.createRule.outputs.ruleId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/okta-create-policy-with-rule-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.