Remove a member (owner/admin only)
Members
Remove Member
⚠️ SECURITY: Only OWNERS and ADMINS can remove members. The organization OWNER cannot be removed.
DELETE
Remove a member (owner/admin only)
Removes a member from the organization.
Permissions
User must be owner or admin to remove members.Restrictions
- Owner cannot be removed - This is enforced at the business logic layer
- Cannot remove yourself if you’re the only admin
- Removed members lose all access to organization resources
What Happens
- Member is removed from organization
- Access to organization resources is revoked
- Member’s API keys and tokens are invalidated
Example
Events Published
MemberRemovedEvent- Triggers cleanup and audit log