Create/activate/deactivate a user by API on cloud

sebastien michea May 24, 2015

How can i create, activate and deactivate a user on confluence cloud by API ?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Stephen Deutsch
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.
May 24, 2015

Hi Sebastien,

For this, you will need to use the older XML-RPC / JSON-RPC methods.  You can find a listing of the ones related to user management here:

https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis/remote-confluence-methods#RemoteConfluenceMethods-UserManagement

For Javascript, you could do something like this:

jQuery.ajax({
    contentType: 'application/json',
    type: 'POST',
    url: contextPath + '/rpc/json-rpc/confluenceservice-v2/addUser',
    data: '["user", "password"]',
    success: function(response) {
      console.log(response);
    },
    error: function(response) {
      console.log(response);
    }
});
sebastien michea May 24, 2015

Thank you very much for your fast answer...

TAGS
AUG Leaders

Atlassian Community Events