Search users by Email Address #12964

Closed
opened 2025-11-02 10:26:31 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Gnyblast on GitHub (May 8, 2024).

Feature Description

I'm not sure if there is any logic behind this and not implemented because it looks pretty basic to be able to search users by their email address.

I tried /user/search endpoint, it accepts search by login or full name but not email which is a bit weird.

We are using our project management tool to trigger PR creations and some user fields there to decide who will be the reviewers etc. Due to some change on project management tool SSO, new users coming in having different username not matching with gitea anymore. Thus I thought of using email address of the user from project management tool and making a prior request to gitea to get the user's username then use that to populate the assignee field for PR generation request. (Also I'd expect PR generate endpoint to accept email address or username but anyway) I couldn't manage to get the user info of a user by querying their email address. Getting all users to iterate over is too slow, not because of iteration but getting all users endpoint response.

Any plan to make the /user/search endpoint allow us to search by email address?

Screenshots

No response

Originally created by @Gnyblast on GitHub (May 8, 2024). ### Feature Description I'm not sure if there is any logic behind this and not implemented because it looks pretty basic to be able to search users by their email address. I tried `/user/search` endpoint, it accepts search by login or full name but not email which is a bit weird. We are using our project management tool to trigger PR creations and some user fields there to decide who will be the reviewers etc. Due to some change on project management tool SSO, new users coming in having different username not matching with gitea anymore. Thus I thought of using email address of the user from project management tool and making a prior request to gitea to get the user's username then use that to populate the `assignee` field for PR generation request. (Also I'd expect PR generate endpoint to accept email address or username but anyway) I couldn't manage to get the user info of a user by querying their email address. Getting all users to iterate over is too slow, not because of iteration but getting all users endpoint response. Any plan to make the `/user/search` endpoint allow us to search by email address? ### Screenshots _No response_
GiteaMirror added the topic/apitype/proposal labels 2025-11-02 10:26:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12964