Users
Admin Users Assign
Add an Enterprise user to a workspace.
Authorization
slackAuth admin.users:writeAuthorizationBearer <token>
In: header
Scope: admin.users:write
Header Parameters
token*string
Authentication token. Requires scope: admin.users:write
Content-Type*"application/x-www-form-urlencoded"
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
team_id*string
The ID (T1234) of the workspace.
user_id*string
The ID of the user to add to the workspace.
is_restricted?boolean
True if user should be added to the workspace as a guest.
is_ultra_restricted?boolean
True if user should be added to the workspace as a single-channel guest.
channel_ids?string
Comma separated values of channel IDs to add user in the new workspace.
Response Body
application/json
application/json
curl -X POST "https://example.com/admin.users.assign" \ -H "token: string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'team_id=string&user_id=string'{ "ok": "True"}
