How to add users to Bamboo Internal User Directory 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 users to Bamboo Internal User Directory using the REST API.
Environment
All supported versions of Bamboo.
Solution
Below is the REST API endpoint that can be used to add users to Bamboo Internal User Directory:
1
2
3
4
5
6
7
curl --user username:password -H "Content-Type: application/json" -X POST ${Bamboo_Base_URL}/rest/api/latest/admin/users --data '{
"name": "<new_user>",
"fullName": "<full name>",
"email": "<email_id>",
"password": "password",
"passwordConfirm": "password"
}'
ℹ️ Replace username and password with your Bamboo admin user credentials
ℹ️ Replace ${Bamboo_Base_URL} with your Bamboo base URL
Example:
1
2
3
4
5
6
7
curl --user bamboo-admin:password -H "Content-Type: application/json" -X POST http://bamboo:8085/rest/api/latest/admin/users --data '{
"name": "new_user",
"fullName": "user1",
"email": "user1@atlassian.com",
"password": "user1",
"passwordConfirm": "user1"
}'
Was this helpful?