在Bitbucket API中,如何获取所有许可用户的列表? [英] In Bitbucket API, how can I get a list of ALL licensed users?

查看:261
本文介绍了在Bitbucket API中,如何获取所有许可用户的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了 Bitbucket API文档和这篇帖子 BitBucket获取所有参与者的列表。第二个链接询问属于回购协议的用户,但在我的情况下,我只想要所有许可用户的列表。

I've looked at the Bitbucket API docs and this post BitBucket get list of all contributors. The second link asks about users belonging to a repo, but in my case I just want a list of ALL licensed users. Is there really NO way to do this or did I miss it in the docs?

推荐答案

执行以下操作:

curl -s --user USER:PASS --request GET https://BITBUCKET-SERVER/rest/api/1.0/admin/users?limit=1000 | jq --raw-output '.values[] | .name + " => " + .displayName'

您将获得用户名= >名称用户列表。

And you'll get the "username => name" list of users.

这篇关于在Bitbucket API中,如何获取所有许可用户的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆