Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,565
Community Members
 
Community Events
168
Community Groups

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

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
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 

 

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

Atlassian Community Events