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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,649
Community Members
 
Community Events
184
Community Groups

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

Hi Team , 

We are trying to  implement to grant project permission to the user using powershell , and we are stuck in how to pass this values  "[ \"READ\", \"CREATE\",\"ADMINISTRATION\"]" to a rest api 

this below is the powershell syntax

$jParams = @{
Uri = (<bambooURL>, rest/api/latest/permissions/project/ -join "/") + "<ProjectName>" + "/users/" + "userID"
Method = 'PUT'
Headers = $jHeaders
}

How to pass this values "[ \"READ\", \"CREATE\",\"ADMINISTRATION\"]" to below command

try {
$bambooProjectAdminAddDataResponse = Invoke-RestMethod @jParams -ErrorAction Stop
}

 

Please assist us if anyone has suggestion how to achieve this 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events