Get repos list of other user by API

in my Gitea I’m a global admin, and I need to get a list of repositories a specific user is involved in by API. How to get the result?

users/{username}/repos lists nothing :confused:

Thank you

Did you authenticate via an access token?

Yes, I did. It returns HTTP 200, however the JSON array is empty. The user exists in repositories as collaborator or team member.

Can be achieved by sudo header for admins.

I think this can also be accomplished by curl https://«server»/api/v1/users/«username»/repos depending upon your configuration. Unless that’s what OP’s remark was.

Yes, that was my remark. It depends on the permission of the user in the repository, so the use is very limited.