/admin.users.assign
POST
/admin.users.assignAdd an Enterprise user to a workspace.
Request
Header Params
token
string
required
Authentication token. Requires scope: admin.users:write
Body Params application/x-www-form-urlencoded
channel_ids
string
optional
Comma separated values of channel IDs to add user in the new workspace.
is_restricted
string
optional
True if user should be added to the workspace as a guest.
is_ultra_restricted
string
optional
True if user should be added to the workspace as a single-channel guest.
team_id
string
required
The ID (T1234
) of the workspace.
user_id
string
required
The ID of the user to add to the workspace.
Request samples
Responses
Typical success response(200)
Typical error response(500)
Typical success response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
Additional properties
integer | number | string | boolean
optional
Exampleresponse
{
"ok": true
}
Last modified: a year ago