Skip to content

bug(site): admin -> template permissions only filter user by email #21211

@phorcys420

Description

@phorcys420

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Image

The "search for user or group" search box only lets you filter users by e-mails because the q parameter of the underlying API that this calls (/api/v2/templates/<..>/acl/available?q=<user>) only filters for the "email" field out of all these fields:

{
  "id": "...",
  "username": "...",
  "name": "...",
  "avatar_url": "...",
  "email": "...",
  "created_at": "2024-07-23T14:40:20.205142Z",
  "updated_at": "2025-12-02T22:02:43.589182Z",
  "last_seen_at": "2025-12-02T22:02:43.589182Z",
  "status": "active",
  "login_type": "github"
},

I believe at least username and name (display name) should be queried too, maybe id too.

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

  1. Go to a template's settings
  2. Search for a user by another field than the email (natural flow)

Environment

On dogfood.

Additional Context

1 Customer affected by this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions