How to add members to a group in Bamboo using the REST API

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This document has information on how to add members to a group in Bamboo using the REST API.

Environment

All supported versions of Bamboo.

Solution

Below is the REST API endpoint that can be used to add members to the group in Bamboo:

1 2 3 4 5 curl -k -u username:password \      -H 'Content-type: application/json' \      -H 'Accept: application/json' \      -d '["<user_name_list>"]' \      -X POST "${Bamboo_Base_URL}/rest/api/latest/admin/groups/${Groupname}/add-users"

ℹ️ Replace username and password with your admin user credentials

ℹ️ Replace <user_name_list> with the list of users to add.

ℹ️ Replace ${Bamboo_Base_URL} with your Bamboo base URL.

ℹ️ Replace ${Groupname} with the group name to which the users list needs to be added

Example:

1 2 3 4 5 6 curl -k -u bamboo:admin123 \      -H 'Content-type: application/json' \      -H 'Accept: application/json' \      -d '["user5","user1","user2"]' \      -X POST http://myBamboo:8085/rest/api/latest/admin/groups/bamboo-localtest/add-users
Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.