Create
cancel
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

Grant permission to bamboo project and plan using rest API

Edited

Hello All,

I am trying to automate the process of providing permission to bamboo project/plan using rest-api. 

I am able to provide project permission using below curl command.

curl -X PUT -u username:password -H "Content-Type: application/json" -d "[ \"READ\", \"CREATE\",\"ADMINISTRATION\"]" {Bamboo_URL}/rest/api/latest/permissions/project/{PROJECT_KEY}/users/{USER_NAME}

Also I am able to provide individual plan permission using below curl command

curl -X PUT -u username:password -H "Content-Type: application/json" -d "[\"READ\",\"WRITE\",\"BUILD\",\"CLONE\",\"ADMINISTRATION\"]" {Bamboo_URL}/rest/api/latest/permissions/plan/{PLAN_KEY}/users/{USER_NAME}

 

I want to provide access to all plan in the project through "Plan Permissions" in project setting. I am not able to find the correct api URL for doing it. Can you please help with the rest-api URL to provide "Plan Permissions" in Project setting.

 

Plan permission - Bamboo Project.PNG

 

Thanks in advance

1 answer

1 accepted

1 vote
Answer accepted

Hi,

 

Projectplan permission can be provided through below API URL.

 

curl -X PUT -u admin:password -H "Content-Type: application/json" -d "[\"READ\", \"WRITE\", \"BUILD\", \"CLONE\",\"ADMINISTRATION\"]" {Bamboo_URL}/rest/api/latest/permissions/projectplan/{PROJECT_KEY}/users/{USER_NAME}

 

You can refer this documentation as well projectplan permissions

 

Thank you

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

152 views 0 4
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