Skip to content

Reassign members when deleting a group, and drop “No group” for regular users #1402

Description

@zZebrahz

Problem

Regular users can end up with no access group, and then silently get the server's built-in defaults.

  • Deleting a group. The confirmation only warns that “Members will move to no group and fall back to built-in defaults”. There is no step to choose where the members go.
  • Choosing “No group”. The Edit User dialog's Group selector offers No group for regular users, even though a default group always exists.

Raised by the maintainer while validating on build 807 · d4e35ba9.

At d4e35ba9:

  • web/src/pages/AdminAccessGroups.tsx deletes after a plain confirmation. internal/access/group_store.go (DeleteConditional) deletes the row, and members end up with no group.
  • The default group can't be deleted (ErrDefaultGroupRequired), so a default always exists to move users into.
  • web/src/pages/AdminUserDetail.tsx offers No group in the Group selector.

Proposal

  • Deleting a group. When the group has members, ask the admin to pick a destination group, defaulting to the default group. Show how many members will move, move them in the same transaction as the delete, and sign out their sessions as other group changes do.
  • No “No group” for regular users. Remove the option from the Group selector, and anywhere else a regular user's group is chosen. Every regular user is always in a group, starting with the default group.
  • Existing ungrouped users. Move current regular users with no group into the default group, or tell admins about them and let them decide.
  • Admins. Admins are unaffected; they stay ungrouped ([v1] User management / access groups / invites #1195 AC4).

This also means “inherited” only ever refers to a group for regular users, which narrows #1401 to admin accounts.

Validation references

Raised while validating #1197 C1/C2; parent #1195 AC2–AC4. Related: #1395 (moving members between groups) and #1401 (“Inherited” wording with no group). Not marked as blocking.


AI-assisted: drafted with Claude Code (claude-opus-5-5) and GitHub CLI at the maintainer's direction. Source findings are at d4e35ba9; no agent runtime testing.

Activity

  1. added theissue type on Sep 24, 2026
  2. self-assigned this
    on Oct 19, 2026
  3. Quick104 commented on Oct 19, 2026

    @Quick104
    Contributor

    🤖 AI agent claim. T3 Code / Codex (gpt-6.1-sol) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions