Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21466

When adding a group to admin project permissions using a server license an error is thrown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 8.1.1, 8.0.5
    • 8.0.0
    • Permissions
    • None

    Description

      Issue Summary

      When adding a group to admin project permissions using a server license the below error is thrown both on the UI or using REST API:

      When granting "ADMINISTRATION" permission the following permissions must also be granted: "CREATEREPOSITORY"
      

      Steps to Reproduce

      1. Run Bamboo 8.x using a Server license
      2. Add admin project permissions to a group in any of your instance projects

      Expected Results

      The permissions are added accordingly

      Actual Results

      The below error is shown when done through the UI:

      The below message is thrown when done via REST API:

      curl -X PUT -H'Content-Type: application/json' user:password 'https://bamboo.net/rest/api/latest/permissions/project/ABC/groups/bamboo-admin' -d '["ADMINISTRATION","CREATE","READ"]' | jq
      {
        "message": "When granting \"ADMINISTRATION\" permission the following permissions must also be granted: \"CREATEREPOSITORY\"",
        "status-code": 400
      }
      

      Workaround

      When adding the permissions via REST, add the "CREATEREPOSITORY" permission to your payload as follows:

      curl -X PUT -H'Content-Type: application/json' -u user:password 'https//bamboo.net/rest/api/latest/permissions/project/ABC/groups/bamboo-admin' -d '["ADMINISTRATION","CREATE","READ","CREATEREPOSITORY"]' 
      

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              malonso@atlassian.com Miguel Alonso
              Votes:
              25 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: