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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.