Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to add group into all deployment project

i have created one group called bamboo-readers, i want to add this group into all my deployment projects. adding manually is lengthy task. I want to add using API. Please advise

1 answer

1 accepted

1 vote
Answer accepted

Iterate over projects with

 curl -H "Authorization: Bearer ACCESS_TOKEN" \
"https://BAMBOO_URL/rest/api/latest/deploy/dashboard/paginate?limit=500" \
| jq ".results | .[] | .id"


Then grant read permission

curl -X PUT -H "Content-Type: appllication\json" \
https://BAMBOO_URL/rest/api/latest/permissions/deployment/DEPLOYMENT_ID/groups/GROUP_NAME \
-d "[\"READ\"]"

using this API, we can able to change the permission of existing group. we wanted to perform add new group in all existing deployment projects.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

54 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you