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