Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to list user's name or ID those member of bitbucket project using groovy

Sourabh Phanda July 31, 2018

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

1 answer

1 vote
Dick
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2018

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! :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events