Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use bamboo rest api method /admin/users/rename

Jenny Ericsson March 21, 2019

I want to change a username in Bamboo 6.8.1 via rest api but I can't figure out how to use the method /admin/users/rename.

E.g.

curl -s -X PUT -u admin:password -H "Content-Type: application/json" -d '{"name": "willow"}' http://localhost:8085/rest/api/latest/admin/users/rename?filter=buffy

says the user does not exist.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2019
curl -s -X PUT -u admin:password -H "Content-Type: application/json" -d '{"name": "newName","oldName":"oldName"}' http://localhost:8085/rest/api/latest/admin/user/newName 

 

Jenny Ericsson March 21, 2019

Great, thanks!

This worked:

curl -s -X PUT -u admin:password -H "Content-Type: application/json" -d '{"name": "willow","oldName": "buffy"}' http://localhost:8085/rest/api/latest/admin/users/rename

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events