wp-remote-users-sync icon indicating copy to clipboard operation
wp-remote-users-sync copied to clipboard

Programatically trigger user sync from site A to site B, for user that doesn't exist on site B

Open verde-io opened this issue 2 years ago • 1 comments

Hello,

I am trying to export / import users from an existing site to a new one, while also keeping the passwords. As the export feature doesn't do that, I was hoping perhaps programatically triggering an update might be a solution. I see that updating something like display name via the WP admin for a user on site A, will force the creation of the user on site B, while also porting the password. It seems that doing the same via wp_update_user or update_user doesn't work, unless I am doing something wrong.

Can you please provide any pointers? Paying for support would not be an issue as it's quite urgent.

Thanks, Tudor

verde-io avatar Sep 14 '22 08:09 verde-io

To further comment, I realise now that even with the profile update on site A, the password is not carried over to the synced user on site B, is that correct?

If that's the case, is there any solution to this besides forcing existing users on site A to update their password to force a password sync to site B?

verde-io avatar Sep 14 '22 08:09 verde-io