Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search users by Email Address #30898

Open
Gnyblast opened this issue May 8, 2024 · 0 comments · May be fixed by #30908
Open

Search users by Email Address #30898

Gnyblast opened this issue May 8, 2024 · 0 comments · May be fixed by #30908
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@Gnyblast
Copy link

Gnyblast commented 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

@Gnyblast Gnyblast added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 8, 2024
@yp05327 yp05327 added the topic/api Concerns mainly the API label May 8, 2024
@yp05327 yp05327 linked a pull request May 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants