Okta · Arazzo Workflow

Okta Find User and Assign Application

Version 1.0.0

Look up a user by login and assign them to an application if found.

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

Provider

okta

Workflows

find-user-and-assign-app
Resolve a user by login and assign them to an application.
Searches for a user and, when found, assigns the matched user to an application instance.
2 steps inputs: appId, oktaApiToken, query outputs: appUserId, userId
1
findUser
Search for a user matching the supplied query, returning at most one result.
2
assignApp
Assign the matched user to the target application for SSO and provisioning.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Okta Find User and Assign Application
  summary: Look up a user by login and assign them to an application if found.
  description: >-
    A find-then-act access-grant flow. The workflow searches for a user by their
    login or email, branches on whether a match was found, and when found
    assigns that user to a target application for SSO and provisioning. The
    resolved user id is chained from the search into the assignment call. 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: applicationApi
  url: ../openapi/okta-application-api-openapi.yml
  type: openapi
- name: userApi
  url: ../openapi/okta-user-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-user-and-assign-app
  summary: Resolve a user by login and assign them to an application.
  description: >-
    Searches for a user and, when found, assigns the matched user to an
    application instance.
  inputs:
    type: object
    required:
    - oktaApiToken
    - query
    - appId
    properties:
      oktaApiToken:
        type: string
        description: Okta API token used for the SSWS Authorization header.
      query:
        type: string
        description: Search term matching the user's firstName, lastName, or email.
      appId:
        type: string
        description: The id of the application to assign the matched user to.
  steps:
  - stepId: findUser
    description: >-
      Search for a user matching the supplied query, returning at most one
      result.
    operationId: listUsers
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: q
      in: query
      value: $inputs.query
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/0/id
    onSuccess:
    - name: userFound
      type: goto
      stepId: assignApp
      criteria:
      - context: $response.body
        condition: $.length > 0
        type: jsonpath
    - name: userMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.length == 0
        type: jsonpath
  - stepId: assignApp
    description: >-
      Assign the matched user to the target application for SSO and
      provisioning.
    operationId: assignUserToApplication
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: appId
      in: path
      value: $inputs.appId
    requestBody:
      contentType: application/json
      payload:
        id: $steps.findUser.outputs.userId
        scope: USER
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      appUserId: $response.body#/id
  outputs:
    userId: $steps.findUser.outputs.userId
    appUserId: $steps.assignApp.outputs.appUserId

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-find-user-and-assign-app-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.