Skip to content

Group details Edit Group modal does not preselect current role #5726

@syedmazharaliraza

Description

@syedmazharaliraza

Describe the bug

On the individual group details page (/organizations/:orgId/groups/:groupId), opening Edit Group does not preselect the group’s current organization role in the Update Group modal.
The same edit action from Access Management (/organizations/:orgId/access-management, Groups tab) correctly preselects role, so behavior is inconsistent across entry points.

To Reproduce

  1. Go to /organizations/:orgId/groups/:groupId.
  2. Click Options in the page header.
  3. Click Edit Group.
  4. Observe the Role dropdown in the Update Group modal.
  5. (Optional cross-check) Go to /organizations/:orgId/access-management?selectedTab=groups, edit the same group from the three-dot menu, and compare behavior.

Expected behavior

The Role dropdown should be prefilled with the group’s current assigned role (including custom roles), same as Access Management flow.

Screenshots

Screen.Recording.2026-03-17.at.3.1.mp4
  1. Group details page edit modal with role not preselected (before)
  2. Access Management edit modal with role preselected (reference/expected)
  3. Group details page after fix with role preselected (after)

Platform you are having the issue on:

  • Web app (Frontend)
  • Browser: [e.g. Chrome 134 / Safari / Firefox]
  • OS: [e.g. macOS 14.x / Windows 11 / Ubuntu]
  • Environment: [Local / Staging / Prod]

Additional context

  • Impact: users may unintentionally submit incorrect role changes because current value is not shown in edit mode.
  • Scope: frontend behavior inconsistency in modal prefill logic/payload shape between group details page and access management groups flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions