This object is in archive! 

How to create a user via the API?

Archived Dan B. 12 years ago

Hi guys!

We would like to create users in our UseResponse system via an API call from WordPress.

Could you give us an example of what code we would need to call from WordPress to do this?

Thanks!

P.S. The reason for this: Our customers sign up for a WordPress account, and then we tell them to go to our UseResponse support community to ask questions. And many are confused why their email/password isn't working. So we'd like to automate this process - meaning when the WordPress account is created, we'll fire off a call to UseResponse to create the account there as well.

Best Answer
photo

Dan,

The easiest way will be integrating Single Sign On with One Login method, so that you'll put login link at the header to point to login form at Wordpress with redirect back to forum or if user is logged in Wordpress, he will automatically be registered or logged in UseResponse

Replies (5)

photo
2

Dan,

The easiest way will be integrating Single Sign On with One Login method, so that you'll put login link at the header to point to login form at Wordpress with redirect back to forum or if user is logged in Wordpress, he will automatically be registered or logged in UseResponse

photo
2

If you want to create user via API, you can use our Developer Manual and specifically API Documentation -> Working with Users article.

photo
2

Hi Stas.

The user API is the ideal situation (more seamless to the user and no risk of the user ending up with 2 accounts in UseResponse - current members have already created an account and may get confused with the Single Sign-On link.)

But from what I read in the documentation, the create user method does not allow me to set the user's password. For this to work, the UseResponse password should be the same as the password in the current system.

Make sense? Otherwise, the user will have 2 different passwords. Is there another solution that I'm missing for setting the password?

photo
2

In this case creating user via API won't work for you, as you want to have 1 user account in system. So you need to overwrite header.phtml in your theme and put link to wordpress login form instead of native login method + integrate OneLogin to redirect back to community.

photo
2

I don't really get the explanation above? Could you make it more detailed?

photo
2

Hello Sven,


Please let me know what is not clear for you

Replies have been locked on this page!