Skip to content

Feature Request: Add Search Bar in Organization Members Tab #37072

@karthikbhandary2

Description

@karthikbhandary2

Feature Description

Summary

Add a search/filter functionality to the Members tab in organization settings to allow administrators to quickly find specific users in organizations with large member lists. The search should work the same way as the repository search in the Repositories tab.

Current Behavior

When viewing the Members tab in an organization's settings page, all members are displayed in a list without any search or filter capability. Administrators must manually scroll through the entire member list to find a specific user, which becomes increasingly difficult as the organization grows.

In contrast, the Repositories tab has a search bar that allows quick filtering of repositories, providing a much better user experience.

Proposed Behavior

Add a search bar at the top of the Members tab that works exactly like the repository search in the Repositories tab:
• Search members by username
• Search members by full name
• Search members by email (if visible)
• Filter results in real-time as the user types
• Same UI/UX pattern as the existing repository search

Use Cases

Large organizations: Organizations with hundreds or thousands of members need quick member lookup
User management: Admins need to quickly find specific users to modify their roles or remove them
Auditing: Quickly verify if a specific user is a member of the organization
Consistency: Provides familiar search experience matching the Repositories tab

Technical Implementation

Frontend Changes

• Location: templates/org/members.tmpl
Reuse the same search component/pattern from templates/org/repositories.tmpl
• Add search input field at the top of the members list (matching repository search styling)
• Implement the same filtering behavior as repository search

Backend API

GET /org/{orgname}/members?q={search_query}&page={page}

• Follow the same pattern as the repository search endpoint
• Search across username, full name, and email fields
• Return paginated results

UI/UX Considerations

Match the repository search UI exactly for consistency
• Place search bar in the same position as repository search
• Show member count (e.g., "Showing 5 of 247 members")
• Clear search button (X icon) to reset filter
• Maintain search state during pagination
• Show "No members found" message when search returns empty results
• Use the same styling, icons, and behavior as repository search

Benefits

• Significantly improves user experience for organizations with many members
• Reduces time spent on member management tasks
Provides consistent UI/UX across organization tabs
• Users already familiar with repository search will instantly understand how to use it
• Scalable solution that works for both small and large organizations

Reference Implementation

The repository search in the Repositories tab already provides the exact functionality and UX pattern needed. This feature request is to replicate that same search experience in the Members tab.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions