Hello Adrien, On Mon, 2021-09-13 at 07:03 +0000, Adrien Glauser wrote:
Hello,
I would like to perform the API action described in the topic above, ideally in a single request. Is that feasible?
Have you looked at the /search/owner [1] API? I'm not an expert and I'm not very sure of what you are looking for, but here's an example: $ osc -A OBS api "/search/owner?binary=glibc&project=openSUSE:Leap:15.3" <collection> <owner rootproject="openSUSE:Leap:15.3" project="SUSE:SLE-15:Update"> <person name="jumper-bot" role="maintainer"/> <group name="ibs-maintenance-team" role="maintainer"/> </owner> </collection> The webui seems to be making more internal (webui specific) calls to identify if the user and roles are inherited from the project or not. I'm not sure if the same can be queried directly from the API. The `osc maintainer` command seems to be following the same flow that Dan mentioned. Regards, Srinidhi. [1] https://build.opensuse.org/apidocs/index#149