Skip to content

Staff users

Staff accounts (owner / staff / teacher). There is deliberately no delete_user — the staff UI never hard-deletes an account either (that would need service_role to touch auth.users); “removing access” is update_user with active: false, a reversible soft deactivation that preserves history on anything FK’d to the user (classes taught, revenue share).

ArgumentTypeRequiredNotes
limitnumbernodefault 50, max 200
offsetnumbernodefault 0

Ordered by full_name ascending. Available to any staff member.

Owner-only. Sends a Supabase Auth email invite; the invitee sets their own password.

ArgumentTypeRequiredNotes
emailstringyes
full_namestringyes
roleowner | staff | teacheryes

Owner-only. Partial update.

ArgumentTypeRequiredNotes
iduuidyes
full_namestringno
roleowner | staff | teacherno
activebooleannofalse = revoke access. Cannot be set to false on the caller’s own id.