Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo CLI

Saugat Chowdhury December 11, 2017

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
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2017

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.

0 votes
Saugat Chowdhury December 12, 2017

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?  

Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 13, 2017

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. 

Saugat Chowdhury December 13, 2017

thanks...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events