Admin

Admin Usergroups Add Teams

POST
/admin.usergroups.addTeams

Associate one or more default workspaces with an organization-wide IDP group.

Authorization

slackAuth admin.teams:write
AuthorizationBearer <token>

In: header

Scope: admin.teams:write

Header Parameters

token*string

Authentication token. Requires scope: admin.teams:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

usergroup_id*string

An encoded usergroup (IDP Group) ID.

team_ids*string

A comma separated list of encoded team (workspace) IDs. Each workspace MUST belong to the organization associated with the token.

auto_provision?boolean

When true, this method automatically creates new workspace accounts for the IDP group members.

Response Body

application/json

application/json

curl -X POST "https://example.com/admin.usergroups.addTeams" \  -H "token: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'usergroup_id=string&team_ids=string'
{  "ok": "True"}