如何通过API在GitLab的项目中吸引所有用户?

发布于 2025-02-07 21:57:00 字数 267 浏览 3 评论 0原文

我想检索一个项目中的所有成员,无论其角色如何。

根据此文档( 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲜肉鲜肉永远不皱 2025-02-14 21:57:00

我认为下面应该为您工作。

GET /api/v4/projects/:id/members/all

这将列出该项目的所有成员。与以下API相比,我可以验证输出之间的差异,而API返回有限的用户(由身份验证的用户创建)

GET api/v4/projects/:id/members

I think below should work for you.

GET /api/v4/projects/:id/members/all

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)

GET api/v4/projects/:id/members
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文