Current section
Files
Jump to
Current section
Files
priv/docs/methods/admin.users.setRegular.json
{
"args": {
"team_id": {
"desc": "The ID of the workspace or organization.",
"example": "T12345678",
"required": true
},
"user_id": {
"desc": "The ID of the user to designate as a regular user.",
"example": "W12345678",
"required": true,
"type": "string"
}
},
"desc": "Set an existing guest user, admin user, or owner to be a regular user.",
"errors": {
"cannot_modify_primary_owner": "The primary owner cannot be modified.",
"cannot_set_org_admin_to_regular_at_workspace_level": "Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead.",
"cannot_set_this_guest_to_regular_at_team_level": "This guest cannot be set to regular because they are active on multiple workspaces.",
"failed_to_set_user_to_regular": "Changing a user to a regular member failed.",
"feature_not_enabled": "The Admin APIs feature is not enabled for this team.",
"not_an_admin": "This method can only be accessed by org owners and admins.",
"team_not_found": "`team_id` was not found.",
"user_not_found": "The requested 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"
}
]
}
}