PropelAuth · Arazzo Workflow

PropelAuth Invite Existing User By ID

Version 1.0.0

Resolve an existing user by email, create a new org, and invite that user in by ID.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub AuthenticationIdentityB2BMulti-TenancyAuthorizationRBACSSOSCIMMCPAPIKeysArazzoWorkflows

Provider

propelauth

Workflows

invite-existing-user-by-id
Resolve a user by email, create an org, then invite that user in by ID.
Looks up an existing user by email, provisions a new organization, and invites the resolved user into it by user ID with the requested role.
3 steps inputs: backendApiKey, email, orgName, role outputs: orgId, userId
1
findUser
Resolve the existing user by email to obtain their user ID.
2
createOrg
Create the organization the user will be invited into.
3
inviteById
Invite the resolved existing user into the new organization by ID.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: PropelAuth Invite Existing User By ID
  summary: Resolve an existing user by email, create a new org, and invite that user in by ID.
  description: >-
    Brings an existing user into a brand new tenant. The workflow resolves the
    user by email to obtain their user ID, creates a new organization, and then
    invites that existing user into the organization by ID with the supplied
    role. Each step inlines its request, including the Backend Integration API
    key as a bearer token, so the flow reads and runs without the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: invitesApi
  url: ../openapi/propelauth-invites-api-openapi.yml
  type: openapi
- name: organizationsApi
  url: ../openapi/propelauth-organizations-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/propelauth-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: invite-existing-user-by-id
  summary: Resolve a user by email, create an org, then invite that user in by ID.
  description: >-
    Looks up an existing user by email, provisions a new organization, and
    invites the resolved user into it by user ID with the requested role.
  inputs:
    type: object
    required:
    - backendApiKey
    - email
    - orgName
    - role
    properties:
      backendApiKey:
        type: string
        description: PropelAuth Backend Integration API key presented as a bearer token.
      email:
        type: string
        description: Email address of the existing user to invite.
      orgName:
        type: string
        description: Name of the new organization to create.
      role:
        type: string
        description: The role the invited user will hold in the organization.
  steps:
  - stepId: findUser
    description: Resolve the existing user by email to obtain their user ID.
    operationId: fetchUserByEmail
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    - name: email
      in: query
      value: $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/user_id
  - stepId: createOrg
    description: Create the organization the user will be invited into.
    operationId: createOrg
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.orgName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      orgId: $response.body#/org_id
  - stepId: inviteById
    description: Invite the resolved existing user into the new organization by ID.
    operationId: inviteUserToOrgById
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    requestBody:
      contentType: application/json
      payload:
        user_id: $steps.findUser.outputs.userId
        org_id: $steps.createOrg.outputs.orgId
        role: $inputs.role
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      invitedStatus: $statusCode
  outputs:
    userId: $steps.findUser.outputs.userId
    orgId: $steps.createOrg.outputs.orgId

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/propelauth-invite-existing-user-by-id-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.