Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

example:

{"jsonrpc" : "2.0", "method" : "addUser", "params" : [{"email":"tututu@mail.com","fullname":"TestUser","name":"user"}, "password"], "id" : null}
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

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

335 views 23 8
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