Skip to content

Prevent Groups from Having Zero Admins (Role Integrity Enforcement) #8

@Akash504-ai

Description

@Akash504-ai

Description

Currently, an admin can remove themselves or other admins without ensuring that at least one admin remains in the group. This may result in a group with zero administrators, causing governance and management issues.

Role integrity rules should be enforced to ensure that every group always has at least one admin.


Proposed Improvements

  • Prevent removal of the last remaining admin
  • Prevent an admin from leaving if they are the only admin
  • Return appropriate 400/403 response when rule is violated
  • Optionally require admin transfer before leaving

Acceptance Criteria

  • System prevents removal of last admin
  • System prevents last admin from leaving
  • Proper error response returned
  • Existing functionality remains intact

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions