Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to bulk change username for confluence server

Bryan Bai
Contributor
October 17, 2018

before export / import space between 2 confluence instance, we want to have unified username. for sure I can change through admin GUI one by one. but wondering if I can do it in a program way.

confluence doesn't have REST API for user update and also scriptrunner doesn't have relate interface.

any suggestions are welcome. 

1 answer

0 votes
Santwana Sarangi {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Hi Bryan,

You can write a custom plugin with the rest module for the above functionality. For the bulk change, a file with data can be sent to the rest endpoint and use the confluence api to rename the username of the user. Here are the useful links for creating a rest module and confluence user management api

  1. https://developer.atlassian.com/server/framework/atlassian-sdk/developing-a-rest-service-plugin/
  2. https://docs.atlassian.com/atlassian-confluence/6.6.0/index.html?com/atlassian/confluence/user/UserAccessor.html. Note: You can use renameUser method to rename the user.
  3. Here is an example of the use of confluence components in the plugin https://developer.atlassian.com/server/confluence/accessing-confluence-components-from-plugin-modules/.

Hope this helps.

Thanks,

Santwana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events