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.
Thanks in advance
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.