Forums

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

Create user in confluence-Server from plugin

Siva Polamarasetti October 18, 2018

I am planning to write a REST API Plugin to create/delete users from confluence server 6.6.7 hosted on our server. As there are no API available for user management, we are planning to write a rest API plugin to add user management functionality which will be used in our organization automation process.

I am referring

https://developer.atlassian.com/server/framework/atlassian-sdk/developing-a-rest-service-plugin/

to create rest API, but not sure how to add user management module to create/delete users. Any pointers would be helpful.

 

Thank you,

pvs

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

You can use the "UserAccessor" class to create or delete the user in the confluence. Here is the link https://docs.atlassian.com/atlassian-confluence/6.6.0/index.html?com/atlassian/confluence/user/UserAccessor.html.

You can do a constructor inject of UserAccessor into the rest module you are writing and then you can use its method to create/delete users. 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