Search users by Email Address #30898
Labels
topic/api
Concerns mainly the API
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
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
The text was updated successfully, but these errors were encountered: