It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add user to confluence using soap rest api (XML-RPC)? Edited

Hi!

I'am using XML-RPC  to work with my confluence. And now i want to create a new user and rest api contains a method "add user": 

void addUser(String token, User  user, String password) - add a new user with the given password

And I do not understand, what kind of entity is this "User"?

Could you show me any example how to create user?

Thank you in advance!

2 answers

2 accepted

2 votes
Answer accepted

Hello Михаил,

The SOAP API has been deprecated since Confluence 5.5 and is not longer currently supported. However, there is a REST API which will use JSON instead of XML to complete tasks. Within the REST you are able to interact with Confluence, though the user endpoints are only available via GET calls. If you are using Jira or Crowd you are able to access endpoints via the Crowd API to manipulate users and groups. Here are resources for both Confluence and Crowd REST API.

For the SOAP API deprecation notice, that may be found at Confluence XML-RPC and SOAP APIs

I hope these resources prove helpful while migrating off the SOAP API.

Regards,
Stephen Sifers

Why is this accepted?

The SOAP API is deprecated since about 4 years now, but there is a reason it is still there: the REST API just isn't nearly complete, looks even abandoned, no progress.

There is no way to create a user via the REST API, so the answer is even misleading.

Like # people like this

example:

{"jsonrpc" : "2.0", "method" : "addUser", "params" : [{"email":"tututu@mail.com","fullname":"TestUser","name":"user"}, "password"], "id" : null}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you