Asana · Arazzo Workflow

Asana Offboard a User

Version 1.0.0

Remove a user from a team and then remove them from the workspace.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CollaborationProductivityProject ManagementProjectsTask ManagementTasksWorkflowArazzoWorkflows

Provider

asana

Workflows

offboard-user
Remove a user from a team and then from the workspace.
Removes a user from a team, then removes the user from the workspace.
2 steps inputs: teamGid, userIdentifier, workspaceGid outputs: teamGid, workspaceGid
1
removeFromTeam
removeUserForTeam
Remove the user from the team.
2
removeFromWorkspace
removeUserForWorkspace
Remove the user from the workspace.

Source API Descriptions

Arazzo Workflow Specification

asana-offboard-user-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Asana Offboard a User
  summary: Remove a user from a team and then remove them from the workspace.
  description: >-
    A member offboarding flow. The workflow removes a user from a team and then
    removes the same user from the workspace, revoking their access in order.
    Each request is written inline so the offboarding can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: teamsApi
  url: ../openapi/asana-teams-api-openapi.yml
  type: openapi
- name: workspacesApi
  url: ../openapi/asana-workspaces-api-openapi.yml
  type: openapi
workflows:
- workflowId: offboard-user
  summary: Remove a user from a team and then from the workspace.
  description: >-
    Removes a user from a team, then removes the user from the workspace.
  inputs:
    type: object
    required:
    - teamGid
    - workspaceGid
    - userIdentifier
    properties:
      teamGid:
        type: string
        description: Team gid to remove the user from.
      workspaceGid:
        type: string
        description: Workspace gid to remove the user from.
      userIdentifier:
        type: string
        description: User gid or email to remove.
  steps:
  - stepId: removeFromTeam
    description: Remove the user from the team.
    operationId: removeUserForTeam
    parameters:
    - name: team_gid
      in: path
      value: $inputs.teamGid
    requestBody:
      contentType: application/json
      payload:
        data:
          user: $inputs.userIdentifier
    successCriteria:
    - condition: $statusCode == 204
  - stepId: removeFromWorkspace
    description: Remove the user from the workspace.
    operationId: removeUserForWorkspace
    parameters:
    - name: workspace_gid
      in: path
      value: $inputs.workspaceGid
    requestBody:
      contentType: application/json
      payload:
        data:
          user: $inputs.userIdentifier
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    teamGid: $inputs.teamGid
    workspaceGid: $inputs.workspaceGid