Skip to content

feat(admin): add exact email user lookup support - #2668

Open
Dhruv302006 wants to merge 1 commit into
supabase:masterfrom
Dhruv302006:feat/get-user-by-email
Open

feat(admin): add exact email user lookup support#2668
Dhruv302006 wants to merge 1 commit into
supabase:masterfrom
Dhruv302006:feat/get-user-by-email

Conversation

@Dhruv302006

Copy link
Copy Markdown

What kind of change does this PR introduce?

Feature

What is the current behavior?

GET /admin/users only supports fuzzy search on email/name with offset pagination, making exact-match client queries slow and inefficient. Closes #880.

What is the new behavior?

Exposes a new email query parameter on the GET /admin/users endpoint. When provided, it performs a fast, case-insensitive, direct lookup on the database (matching SSO users too) and returns a list containing that exact user.

Additional context

We have fully verified this change using Go unit tests:
go test -v ./internal/api -run TestAdmin

@Dhruv302006
Dhruv302006 requested a review from a team as a code owner August 2, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a supabase.auth.admin.getUserByEmail function

1 participant