我想知道是否有任何方法可以知道用户是项目的所有者还是拥有项目的组的主人。
至少某种直接的方式。
If you use the Get Single Project api (https://docs.gitlab.com/ee/api/projects.html#get-single-project), it will return a JSON object of the project, where the project owner is listed.
curl -X GET -H "PRIVATE-TOKEN: example" "https://gitlab.com/api/v4/projects/projectID"