{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Remove a user from a workspace or organization.\n\nThe user making this call must be an admin in the workspace. The user can\nbe referenced by their globally unique user ID or their email address.\n\nWhen invoked using a **Service Account Token (SAT)**, this endpoint follows the same behavior as the\n[SCIM API Delete endpoint](/docs/scim).\nTo learn more about how Asana handles user deprovisioning, refer to our\n[Help Center article on deprovisioning users](https://help.asana.com/s/article/user-deprovisioning).\n\nWhen invoked using a **Personal Access Token (PAT)**, the endpoint behaves similarly, except that\nownership of the user’s resources is transferred to the **PAT owner** instead of the admin\n[specified in the Admin Console](https://help.asana.com/s/article/user-deprovisioning#gl-deprovisioning).\n\n**Note:** If you wish to retain access to a user’s private resources\n(i.e., those visible only to that user), you have to make them public manually\n(or ask the user to do so) before removal.\n\nReturns an empty data record.","properties":{"path":{"type":"object","properties":{"workspace_gid":{"type":"string","examples":["12345"],"description":"Globally unique identifier for the workspace or organization."}},"required":["workspace_gid"],"additionalProperties":false},"query":{"type":"object","properties":{"opt_pretty":{"type":"boolean","examples":[true],"description":"Provides “pretty” output.\nProvides 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."}},"required":[],"additionalProperties":false},"body":{"type":"object","properties":{"data":{"$ref":"#/definitions/WorkspaceRemoveUserRequest"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"WorkspaceRemoveUserRequest":{"type":"object","description":"A user identification object for specification with the addUser/removeUser endpoints.","properties":{"user":{"description":"A string identifying a user. This can either be the string \"me\", an email, or the gid of a user.","type":"string","examples":["12345"]}}}}},"name":"Remove a user from a workspace or organization","id":"asana.removeuserforworkspace","example":{"path":{"workspace_gid":"12345"},"body":{}},"maxRequests":1,"summary":false}}