如何通过API在GitLab的项目中吸引所有用户?
我想检索一个项目中的所有成员,无论其角色如何。
根据此文档( https://docs.gitlab.com/ee/ee/ee/ee/ee/ee/api/api/members 。
。 但是,我想检索一个项目中的所有成员,无论其角色以及创建谁的角色。
I want to retrieve all members in a project irrespective of their role.
According to this documentation (https://docs.gitlab.com/ee/api/members.html)
If i use this API : GET /projects/:id/members
I can only get the members that are created by the user whose personal access token i pass in the API request.
But i want to retrieve all the members in a project irrespective of their role and who created it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为下面应该为您工作。
这将列出该项目的所有成员。与以下API相比,我可以验证输出之间的差异,而API返回有限的用户(由身份验证的用户创建)
I think below should work for you.
This will list all members of the project. I can verify the difference between output compared with below API which returns limited users (created by the authenticated user)