How to add users to Bamboo Internal User Directory using the REST API
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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:
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:
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"
}'