Set team memberships for a batch of users
Set the explicit team memberships for one or more users.
For each listed user, removes all of their current explicit (individually-assigned) team memberships across the organization, then grants the specified role on each listed team. Memberships held through an SSO group are never affected, and a user already in a listed team via SSO is skipped. This is a full replacement, not an incremental add — any explicit membership not present in this request is removed.
Authorizations
Organization API key (sl_…).
Headers
The organization ID the request is scoped to.
Body
Users, by email, whose explicit team memberships are being set. Each user's existing explicit memberships across all teams are replaced by those in this request.
1 - 100 elementsThe teams each listed user should explicitly belong to, and the role to grant on each. Any team not listed is removed from every listed user's explicit memberships.
1 - 100 elements
