missing API call get /admin/users/{username} #3845

Open
opened 2025-11-02 05:28:04 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @homburgs on GitHub (Aug 26, 2019).

  • Gitea version (or commit ref): 1.9.1
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

missing an API call to get all informations for an existing user

the call GET /users/{username} sends only a few user properties,
but not enough to change some values (eg. allow_create_organization, or active)
and send this changes back to server by API call PATCH /admin/users/{username}

Short: i missing the API call GET /admin/users/{username}

Originally created by @homburgs on GitHub (Aug 26, 2019). - Gitea version (or commit ref): 1.9.1 - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## missing an API call to get all informations for an existing user the call `GET /users/{username}` sends only a few user properties, but not enough to change some values (eg. allow_create_organization, or active) and send this changes back to server by API call `PATCH /admin/users/{username}` Short: i missing the API call `GET /admin/users/{username}`
GiteaMirror added the type/proposalmodifies/api labels 2025-11-02 05:28:04 -06:00
Author
Owner

@richmahn commented on GitHub (Aug 28, 2019):

Signaling intent to take this on. We also want the whole user/org query/edit to be complete. I see that there are also other user queries, such as for followers, stars, subscriptions, user's repos & orgs, public keys, etc. that aren't done the same as GitHub, where they shouldn't be as restricted (ie. shouldn't require authentication).

@richmahn commented on GitHub (Aug 28, 2019): Signaling intent to take this on. We also want the whole user/org query/edit to be complete. I see that there are also other user queries, such as for followers, stars, subscriptions, user's repos & orgs, public keys, etc. that aren't done the same as GitHub, where they shouldn't be as restricted (ie. shouldn't require authentication).
Author
Owner

@richmahn commented on GitHub (Sep 4, 2019):

Made the above PR for this. Added a admin/users/<username> endpoint but also made all GET endpoints for getting User and Org info more verbose and open.

@richmahn commented on GitHub (Sep 4, 2019): Made the above PR for this. Added a `admin/users/<username>` endpoint but also made all GET endpoints for getting User and Org info more verbose and open.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3845