1

我想知道是否有任何方法可以知道用户是项目的所有者还是拥有项目的组的主人。

至少某种直接的方式。

4

1 回答 1

0

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"
于 2018-07-11T14:18:16.700 回答