provider Workspaces POST
/workspaces/{workspace_gid}/removeUser @utdk/asana
/workspaces/{workspace_gid}/removeUser Remove a user from a workspace or organization
Remove a user from a workspace or organization.
The user making this call must be an admin in the workspace. The user can
be referenced by their globally unique user ID or their email address.
When invoked using a **Service Account Token (SAT)**, this endpoint follows the same behavior as the
[SCIM API Delete endpoint](/docs/scim).
To learn more about how Asana handles user deprovisioning, refer to our
[Help Center article on deprovisioning users](https://help.asana.com/s/article/user-deprovisioning).
When invoked using a **Personal Access Token (PAT)**, the endpoint behaves similarly, except that
ownership of the user’s resources is transferred to the **PAT owner** instead of the admin
[specified in the Admin Console](https://help.asana.com/s/article/user-deprovisioning#gl-deprovisioning).
**Note:** If you wish to retain access to a user’s private resources
(i.e., those visible only to that user), you have to make them public manually
(or ask the user to do so) before removal.
Returns an empty data record.
- workspace_gid path required
- Globally unique identifier for the workspace or organization.
- string
- opt_pretty query
- Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
- boolean
Try it
Authentication
Configure credentials for Asana
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import asana from '@utdk/asana';
await asana.removeuserforworkspace()