provider admin.usersadmin POST /admin.users.assign
@utdk/slack /admin.users.assign
admin_users_assign
Add an Enterprise user to a workspace.
token header required
Authentication token. Requires scope: `admin.users:write`
string

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

adminUsersAssign
POST/admin.users.assign
Add an Enterprise user to a workspace.

Input

Comma separated values of channel IDs to add user in the new workspace.

True if user should be added to the workspace as a guest.

True if user should be added to the workspace as a single-channel guest.

required

The ID (`T1234`) of the workspace.

required

The ID of the user to add to the workspace.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.adminUsersAssign()