Back to blog
4 min read Content Sync

Pull New User Accounts from Live to Staging Without Duplicates

A staging site is a copy of live from some day in the past. Since then, new people have registered on live: customers, members, authors. To test a checkout, a membership rule or an author’s dashboard with one of them, you need their accounts on staging too, without copying the whole live database over your staging work. With Import Export by RockStarLab PRO, you browse the live site’s users from staging, pick the ones you need and pull them, and accounts staging already has are updated instead of duplicated.

PRO: user sync between sites is a PRO feature and needs PRO with a license on both sites. The test below used Import Export by RockStarLab 2.2.13 and PRO 2.1.31.

Short Answer

On staging, go to Users, click Sync, choose the live site and click Browse remote users. Search, tick the users and click Pull selected users. New users are created on staging with their roles and profile data; users with an email address staging already has are updated. Nothing on live changes.

Find the new users on live

Two customers had registered on live after staging was made: Lena Fischer and Omar Haddad. A third, Anna Weber, existed on both sites. On staging, in Users, we clicked Sync (no users need to be selected for a pull), chose the live site and clicked Browse remote users.

The dialog lists the live site’s users with their ID and email. The search box filters by name or email; we searched for the domain of the customers’ emails and ticked the three users:

Remote Users dialog on staging with a search box and three live users selected: Anna Weber, Lena Fischer and Omar Haddad
Browse the live site’s users from staging and tick the ones you need.

Pull them to staging

After Pull selected users, the Users screen on staging reported Users pulled. Created: 2, Updated: 1. Lena Fischer and Omar Haddad were new accounts with the Customer role; Anna Weber was matched by her email address and updated, so staging still has one Anna Weber:

Users screen on staging with the notice Users pulled. Created: 2, Updated: 1 and the three customers listed
Two new accounts created, one existing account updated.
User on live On staging before After the pull
Registered after staging was made Missing Created with the same role and name
Exists on both, same email Older details Updated from live, no duplicate
Not selected Whatever staging has Unchanged

For WooCommerce customers, the billing and shipping addresses come along, the same as in a push; see copying customers with their addresses.

Things to know

  • A pull reads from live and writes only to staging. Live doesn’t change.
  • Users are matched by email address. A staging account with the same username but another email is not touched; the pulled user gets a new username such as name-2.
  • To log in as a pulled user on staging, set a password in their profile, or use a user-switching plugin.
  • A role added by a plugin on live must exist on staging too, the same as for a push; see syncing users with their roles.
  • Pulled accounts are real people’s data. Pull only the accounts you need for the test, and keep staging closed to the public.
  • To bring a post together with its author, pull the post; the author is matched the same way.

Before you pull, back up staging, or ask your AI agent to start the backup.

With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see connecting Claude Code to WordPress). With it, one request is enough:

With Import Export by RockStarLab, find Lena Fischer and Omar Haddad on the live site and pull their accounts to this staging site.

In our run, the agent called rsl-ie-pro/sync-users-browse with a search for each name, which returned the live user IDs 26 and 27 with their email and role, and then rsl-ie-pro/sync-users-pull with those IDs. Because both accounts were already on staging from the pull above, the result was 0 created, 2 updated, 0 failed.

FAQ

How do I copy only new users from live to staging?

Browse the live site’s users from staging and pull only the ones you select. Users that staging already has are matched by email address and updated, not duplicated.

Does pulling users change anything on the live site?

No. A pull reads the users on live and writes them on staging.

Are WooCommerce addresses pulled too?

Yes. A customer arrives on staging with the billing and shipping addresses from live, ready for a test checkout.

Can I pull all users at once?

Use Select all in the dialog; up to 50 users are pulled at a time. For larger numbers, export the users to a file on live and import it on staging.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE