Okta · Arazzo Workflow

Okta Create and Activate Group Rule

Version 1.0.0

Create a dynamic group rule and activate it so it begins evaluating.

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-and-activate-group-rule
Create a dynamic group rule and turn it on.
Creates a group rule whose expression assigns matching users to a group, then activates it.
2 steps inputs: expressionValue, oktaApiToken, ruleName, targetGroupId outputs: ruleId
1
createRule
Create a group rule that assigns users matching the expression to the target group.
2
activateRule
Activate the newly created group rule so Okta begins evaluating it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Okta Create and Activate Group Rule
  summary: Create a dynamic group rule and activate it so it begins evaluating.
  description: >-
    Sets up automated group membership in Okta. The workflow creates a group
    rule that assigns matching users to a target group based on a profile
    expression, then activates the rule so Okta begins evaluating it against
    users. The new rule id is chained from creation into activation. 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: groupApi
  url: ../openapi/okta-group-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-and-activate-group-rule
  summary: Create a dynamic group rule and turn it on.
  description: >-
    Creates a group rule whose expression assigns matching users to a group,
    then activates it.
  inputs:
    type: object
    required:
    - oktaApiToken
    - ruleName
    - expressionValue
    - targetGroupId
    properties:
      oktaApiToken:
        type: string
        description: Okta API token used for the SSWS Authorization header.
      ruleName:
        type: string
        description: The display name of the group rule.
      expressionValue:
        type: string
        description: The Okta Expression Language condition (e.g. user.department=="Engineering").
      targetGroupId:
        type: string
        description: The id of the group matching users should be assigned to.
  steps:
  - stepId: createRule
    description: >-
      Create a group rule that assigns users matching the expression to the
      target group.
    operationId: createGroupRule
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    requestBody:
      contentType: application/json
      payload:
        type: group_rule
        name: $inputs.ruleName
        conditions:
          expression:
            type: urn:okta:expression:1.0
            value: $inputs.expressionValue
        actions:
          assignUserToGroups:
            groupIds:
            - $inputs.targetGroupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ruleId: $response.body#/id
      ruleStatus: $response.body#/status
  - stepId: activateRule
    description: >-
      Activate the newly created group rule so Okta begins evaluating it.
    operationId: activateGroupRule
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: ruleId
      in: path
      value: $steps.createRule.outputs.ruleId
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    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-and-activate-group-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.