How to add users to Bamboo Internal User Directory using the REST API

Still need help?

The Atlassian Community is here for you.

Ask the community

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"
 }'

 (info) Replace username and password with your Bamboo admin user credentials
 (info) 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"
 }'



Last modified on Apr 20, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.