Packages

A Slack Web & Real Time Messaging API client.

Current section

Files

Jump to
slack_kit priv docs methods admin.users.remove.json
Raw

priv/docs/methods/admin.users.remove.json

{
"args": {
"team_id": {
"desc": "The ID (`T1234`) of the workspace.",
"required": true
},
"user_id": {
"desc": "The ID of the user to remove.",
"example": "W12345678",
"required": true,
"type": "string"
}
},
"desc": "Remove a user from a workspace.",
"errors": {
"cannot_modify_primary_owner": "The primary owner cannot be modified.",
"failed_to_remove_user_from_workspace": "Removing this user from the workspace failed.",
"feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
"invalid_permissions": "This method is only accessible by org owners and admins.",
"team_not_found": "`team_id` was not found.",
"user_already_deleted": "The requested user has already been marked as deleted.",
"user_not_found": "The user was not found."
},
"rate_limit": {
"label": "Tier 2: 20+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"user": [
{
"name": "admin.users:write",
"url": "https://docs.slack.dev/reference/scopes/admin.users.write"
}
]
}
}