Auth0 · Arazzo Workflow

Auth0 Create Role and Assign to a User

Version 1.0.0

Create a role, assign an existing user to it, then list the role's users.

1 workflow 1 source API 1 provider
View Spec View on GitHub AI AgentsAuthenticationAuthorizationFGAIdentity ManagementMCPOktaOpenID ConnectSAMLSecuritySCIMArazzoWorkflows

Provider

auth0

Workflows

create-role-assign-to-user
Create a role and assign a user to it.
Creates a role, assigns the supplied user id to it, and lists the role's users to verify.
3 steps inputs: description, roleName, userId outputs: roleId, users
1
createRole
Create a new user role.
2
assignUser
Assign the supplied user to the new role.
3
listRoleUsers
List the role's users to confirm the assignment.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Auth0 Create Role and Assign to a User
  summary: Create a role, assign an existing user to it, then list the role's users.
  description: >-
    Creates a new access role and immediately grants it to a user. The workflow
    creates a user role, assigns the supplied existing user to that role, and
    lists the role's users to confirm the membership. Each step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-620.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-620.20
      capability_name: Identity & Access Management
      spec: auth0-roles-api-openapi.yml
      confidence: 0.92
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: rolesApi
  url: ../openapi/auth0-roles-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-role-assign-to-user
  summary: Create a role and assign a user to it.
  description: >-
    Creates a role, assigns the supplied user id to it, and lists the role's
    users to verify.
  inputs:
    type: object
    required:
    - roleName
    - userId
    properties:
      roleName:
        type: string
        description: Name of the new role.
      description:
        type: string
        description: Optional description of the role.
      userId:
        type: string
        description: Existing user id to assign to the new role.
  steps:
  - stepId: createRole
    description: >-
      Create a new user role.
    operationId: post_roles
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.roleName
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      roleId: $response.body#/id
  - stepId: assignUser
    description: >-
      Assign the supplied user to the new role.
    operationId: post_role_users
    parameters:
    - name: id
      in: path
      value: $steps.createRole.outputs.roleId
    requestBody:
      contentType: application/json
      payload:
        users:
        - $inputs.userId
    successCriteria:
    - condition: $statusCode == 200
  - stepId: listRoleUsers
    description: >-
      List the role's users to confirm the assignment.
    operationId: get_role_user
    parameters:
    - name: id
      in: path
      value: $steps.createRole.outputs.roleId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      users: $response.body
  outputs:
    roleId: $steps.createRole.outputs.roleId
    users: $steps.listRoleUsers.outputs.users

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/auth0-create-role-assign-to-user-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.