App Logo
supabase.com

Change Team Member Role

Changes an existing active member's role in a Supabase organization, identified by email. Matches the requested role against the org's own role picker (e.g. Owner/Administrator/Developer). Only works on already-active members — a pending invitee's role must be set at invite time (create_user) since Supabase disables role editing until the invite is accepted. Returns the role before and after the change.

Input

role required

New role name matched against the organization's own role picker (e.g. "Owner", "Administrator", "Developer"). Case-insensitive.

email required

Email of the active member whose role should change.

orgId required

Organization slug, e.g. "czohueidxubssokhivlp" (from list_users_and_roles' orgSlug field).

Output

email required
orgId required
roleAfter required
roleBefore required

Start building not clicking