API: Get members of a team as admin #4709

Closed
opened 2025-11-02 06:00:28 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @gerdemann on GitHub (Jan 23, 2020).

  • Gitea version (or commit ref): 1.11.0+rc2
  • Git version: n/a
  • Operating system: Docker
  • 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: n/a

Description

If I use /api/v1/orgs/#ORGNAME#/teams to get the teams and then take the ID of the team and then use /api/v1/teams/#ID#/members to get the members, I get a 404 error message.
I'm not member of this org/team, but i have admin privileges!

Originally created by @gerdemann on GitHub (Jan 23, 2020). - Gitea version (or commit ref): 1.11.0+rc2 - Git version: n/a - Operating system: Docker - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: n/a ## Description If I use `/api/v1/orgs/#ORGNAME#/teams` to get the teams and then take the ID of the team and then use `/api/v1/teams/#ID#/members` to get the members, I get a 404 error message. I'm not member of this org/team, but i have admin privileges!
GiteaMirror added the issue/confirmedtype/enhancementmodifies/api labels 2025-11-02 06:00:28 -06:00
Author
Owner

@gerdemann commented on GitHub (Jan 24, 2020):

A workaround would be to add yourself to the team before the query and remove yourself after the query.

@gerdemann commented on GitHub (Jan 24, 2020): A workaround would be to add yourself to the team before the query and remove yourself after the query.
Author
Owner

@stale[bot] commented on GitHub (Mar 26, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 26, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@gerdemann commented on GitHub (Mar 26, 2020):

Still valid

@gerdemann commented on GitHub (Mar 26, 2020): Still valid
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4709