Title: User not syncing
Last modified: November 8, 2022

---

# User not syncing

 *  Resolved [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/user-not-syncing/)
 * I assumed that when logging into site A it would create a user on site B if they
   didn’t exist. This seems to be the case for another user on my site, but while
   testing my own non admin account it didn’t work. I logged in as a regular user
   on site A and it did not create a user on site B for myself. I know it’s generally
   working because a Woocommerce order came in which created a user and that synced
   to the second site. I’m curious as to why my own attempts at testing wouldn’t
   permit the creation of the user on site B?
 * The logs are a bit confusing but here is site a (note: I put XXXX to obscure 
   the actual site/user info)
 *     ```
       2022-11-08 16:44:51 - Info - Login action - enqueueing asynchronous actions for username "xxxxx@gmail.com"
       2022-11-08 16:44:56 - Info - Renewing token for https://site.com/
       2022-11-08 16:44:56 - Info - Added https://site.com/wprus/login/?wprusdata=zIqh87W5fWUpjYkiMwOun9KLHYxJXQ7UjvRYJA7UN%2BLQtH4Cfkt1sttQ5cKgj3PWx1JpSzvAfHQMdtQyDtI7j56X4KJif4H39DjcdNpKpilu%2BOXJmcITv%2BNZrTxtz0bwl9_S4UI%2BP734h40ieLxw5GqmpP0MhGspC4u4hA59Igg8nEgcmrQN2lWvd2ablG61jNtmT6O2zMHfpMjoGHzbEg%3D%3D&token=2d386f04e17dcf2258acce83883838 async URL in wp_footer
       ```
   
 * Site b:
 *     ```
       022-11-08 16:44:56 - Info - Token created: site https://siteB.com/ - action "Login"
       2022-11-08 16:45:00 - Success - Access granted - https://siteA.com
       2022-11-08 16:45:00 - Alert - Login action failed - received invalid data.
       		Array
       (
           [data] => Array
               (
                   [username] => user@gmail.com
                   [remember] => 0
                   [base_url] => https://siteA.com
               )
   
       )
       ```
   
    -  This topic was modified 3 years, 7 months ago by [qwik3r](https://wordpress.org/support/users/qwik3r/).
    -  This topic was modified 3 years, 7 months ago by [qwik3r](https://wordpress.org/support/users/qwik3r/).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16202246)
 * Fantastic support for this plugin…
 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16202463)
 * Support may only be good as the user’s due diligence and feedback, I suppose…
 * > What if the user to synchronise does not exist on the remote site?
   > If the incoming Create action is enabled along with the incoming Update action,
   > the user will be synchronised on the remote website upon user update.
   >  If other
   > actions for this user are fired before that (Login, Logout, Delete, Password,
   > Metadata), nothing will happen, and an action failure log entry will be recorded
   > if the “Enable Logs” box is checked.
 * From the FAQ.
 *  Thread Starter [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16202576)
 * I read the FAQ then came here… but thanks for the sarcasm, it definitely helps
   in solving this.
 * _If other actions for this user are fired before that (Login, Logout, Delete,
   Password, Metadata_
 * How would “other actions” occur. Doesn’t that contradict itself if the user is
   trying to login, and it syncs with the remote site to add them to that site, 
   the act of logging in ‘interrupts’ the creation and causes it to fail?
 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16202627)
 * Merely matching the tone of the thread.
 * It does not contradict itself. If a user profile is updated on Site A, with the
   set of actions indicated in the same paragraph of the FAQ properly configured,
   then the user is created on site B if it does not exist.
 * User logs in on site A > Login action fails on site B > profile is updated somehow
   on site A (in the instance of WooCommerce you described it happened at order 
   time) > user gets created on Site B
 * A user cannot be simply created at Login, because the payload for Login and Logout
   sent to Site B cannot and will not include the entirety of the user account data.
    -  This reply was modified 3 years, 6 months ago by [Alexandre Froger](https://wordpress.org/support/users/frogerme/).
    -  This reply was modified 3 years, 6 months ago by [Alexandre Froger](https://wordpress.org/support/users/frogerme/).
 *  Plugin Author [Alexandre Froger](https://wordpress.org/support/users/frogerme/)
 * (@frogerme)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16202657)
 * As a side note: this behavior can be customised by developers with a combination
   of overloading the API classes and using the WordPress action and filter hooks
   provided by the plugin.
 *  Thread Starter [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16205042)
 * Thanks for the clarification. In the event something modifies the data ahead 
   of being sent over to site B is there anyway to mitigate this? Such as setting
   a 30 second delay giving site A enough time to finish updating the user’s info(
   such as meta, tags from WP Fusion, Woocommerce related info etc) ?
 * Would a second attempt to login then more or less fix the first attempt since
   in theory there might not be anything being updated anymore?
 *  Thread Starter [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * (@qwik3r)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16206716)
 * On another note, my apologies for the tone.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘User not syncing’ is closed to new replies.

 * ![](https://ps.w.org/wp-remote-users-sync/assets/icon-256x256.png?rev=2260728)
 * [WP Remote Users Sync](https://wordpress.org/plugins/wp-remote-users-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-remote-users-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-remote-users-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-remote-users-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-remote-users-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-remote-users-sync/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [qwik3r](https://wordpress.org/support/users/qwik3r/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/user-not-syncing/#post-16206716)
 * Status: resolved