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: $sourceDescriptions.teamsApi.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: $sourceDescriptions.workspacesApi.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
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.