Set direct role grants for a batch of users
Set the direct role grants for one or more users, by email.
For each listed email, removes all of its current direct role grants, then grants the roles in this request. Roles inherited from a team, the organization’s default roles, and grants held through an SSO group are never affected. This is a full replacement, not an incremental add — any direct grant not present in this request is removed, and an empty role list clears a user’s direct grants entirely.
Authorizations
Organization API key (sl_…).
Headers
The organization ID the request is scoped to.
Body
Users, by email, whose direct role grants are being set. Each user's existing direct role grants are replaced by those in this request. An address need not belong to an existing member — granting to an invited address takes effect on their first sign-in.
1 - 100 elementsThe roles every listed user should directly hold, each with the scope it applies to. Applied identically to every listed user. An empty list clears every listed user's direct role grants.
100
