-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Teams search in API does not return team unless user is a direct member #22101
Comments
Bump, even a user with admin access in org and an API token with full read/write access cannot query members of a team without being in the team itself. (Using endpoint We have a use case where we programmatically assign reviewers by querying members of a |
I checked the code: now Lines 1410 to 1414 in 4d7c063
According to the code, only Lines 458 to 492 in 4d7c063
|
Thanks, adding the bot to I originally thought creating a new team with the exact same site permissions as |
Description
An organisation I created has a team called
php-packages
The team is listed on a call to teams endpoint:
<APIURL>/orgs/<ORGNAME>/teams
But when I am calling this endpoint:
<APIURL>/orgs/<ORGNAME>/teams/search?q=php
I get no results, unless I am an explicit member of the team.
The users token querying the API is for the user owning the organisation.
Also, I am sure this endpoint has behaved differently in the past, as the script that now fails have worked prior. (Its been a while since I last used it, so I unfortunately do not know what version Gitea this was)
Gitea Version
1.17.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
N/A
Operating System
Docker on Ubuntu
How are you running Gitea?
Official docker image
Database
None
The text was updated successfully, but these errors were encountered: