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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

125 views 2 0
Join discussion

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