Bamboo CLI

Is there a way to set up project level permissions through Bamboo CLI or any other way to set permission remotely instead of doing it from the UI?

I think Bamboo REST API currently does not support any write operation.

Is it possible to develop a plugin for that? 

  

2 answers

1 vote

You can use those REST endpoints to achieve what you want:

https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e4367

https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e44

 

In 6.2. permissions rest endpoints were unified and support all CRUD operations.

thanks it is useful. 

I was trying this to set project level permission for an user - https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e4393

PUT /permissions/project/{key}/users/{name : (.+)?}

Where the permission (e.g. ADMIN/CREATE) should be specified? hopefully as payload, any sample? 

btw, Don't see REST API to create a Build Project though?  

AFAIR, there's no endpoint to create a project.

 

The permissions payload should be in the request body, e.g.

["BUILD","READ"]

If you need more examples, you can navigate to any permissions widget (e.g project or plan permissions) in Bamboo and use browser console to lookup requests that are being sent. Those use the same set of REST endpoints. 

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot