I would like to list the users who are member of a Bitbucket project. We have multiple projects for which we have to pull the users list member of the projects. Do we have any groovy script that we can run in the Bitbucket script console to list.
Thanks
Hi Sourabh!
I don't have a Groovy script handy for you, but you could achieve this fairly easily using the REST API:
GET http://example.com/rest/api/1.0/projects/<PROJECT_KEY>/permissions/users
Please see the documentation here.
That will return a JSON object, with a list of all users that have been granted at least one permission for the specified project.
I hope this helps!
It looks like you're new here. Sign in or register to get started.