Skip to main content

admin.usergroups.addTeams method

Welcome to the new home of Slack developer docs!

We're still building and not all features are available quite yet. Enjoy this peek into the future!

Not ready for the future? Return to the past at api.slack.com.

Usage info

Use this method to add workspaces to an organization-wide IDP Group. When you link workspaces to an IDP group, you automatically add members of the IDP group to those workspaces.

This method is only available to Enterprise organizations, and only applies to IDP groups (user groups) across the organization.

Response

If an error occurs on one or more workspaces, an errors element will be populated with a list of team_IDs that were not successfully linked to the IDP group:

    {
"ok": false,
"error": "auto_provision_failure",
"errors": [
"T12345678",
"T98765432"
]
}

Note that some workspaces may successfully be added while others fail:

    {
"ok": false,
"error": "auto_provision_failure",
"errors": [
"T98765432"
]
}