Back to blog
6 min read Video Lessons

How to Export and Import WordPress Users with ACF Custom Fields

Moving users is easy until their profiles carry ACF fields such as a department or a portrait. Export the accounts to CSV on the source site, then import the file as Users on the destination, matched by a stable identifier such as email so a second import updates the same people. This workflow uses Import Export by RockStarLab PRO on both sites.

Consider a member directory with three profile fields: a department, a “Show in directory” switch and a portrait. The text and switch can travel as values. The portrait also needs a source URL the destination can fetch and an ACF image field that can hold the resulting attachment.

Prepare the profiles on both sites

On the destination, register the corresponding ACF field group for user profiles. Check field names and types in ACF, then open a user’s edit screen and confirm the fields appear. Make sure any custom role you intend to assign exists on the destination. Before updating accounts, take a restorable WordPress backup.

1. Select the users to export

On the source website, go to Import Export by RockStarLab → Export → Users. Click Next Step. For a member directory, you can filter by role. For a hand-picked group, add an ID → In filter and enter comma-separated source user IDs. Check the total before choosing fields. These IDs select the source accounts. The destination may use different IDs for the same people.

Choose Users on the source site to export WordPress accounts
Choose Users on the source site to export WordPress accounts.
Use the ID filter to limit the export to specific member profiles
Use the ID filter to limit the export to specific member profiles.

2. Choose the account and ACF columns

In Select Fields, add the username, email and display name. Add roles if role assignment is part of the transfer. Expand ACF Fields and select the profile values you need. Choose CSV, include the header row, start the export and download the completed file.

Select account columns and registered ACF user fields for the export
Select account columns and registered ACF user fields for the export.
Example column What to check before import
user_login and user_email Each row identifies one person. Compare the matching column with the existing destination account before rerunning the file.
roles Check the role slug, for example subscriber. Only map roles you intend to assign.
acf_member_department The department name should appear as text, for example Community.
acf_member_directory Keep the exported true/false value for the destination switch.
acf_member_profile_image A filled image field should contain a retrievable image URL. A profile without a portrait can have an empty cell.

These ACF column names come from the example field group. Your headers will reflect the field names registered on your site. Limit the file to information needed for the transfer and keep the user CSV private.

3. Upload the CSV and map fields on the destination

Open Import → Users on the receiving site and upload the CSV. In the preview, check the number of records and inspect a row with an image and one without. Continue to mapping and click Auto Map. Check every source-to-destination pair before continuing.

Select Users in the destination import wizard
Select Users in the destination import wizard.
Preview the two member rows, including the image URL and the optional empty image
Preview the two member rows, including the image URL and the optional empty image.
Review the mapping for account details and all three ACF fields
Review the mapping for account details and all three ACF fields.

For example, the profile image column belongs in the registered ACF image field. The account’s avatar URL is a separate field. If a custom field is missing from the available choices, check that the destination ACF group is active and applies to user profiles.

4. Set matching and media options

Choose Email under Check for Existing Items by Field. Choose Update for a match if the CSV contains the values you want to apply. Choose Create for a missing match if new accounts belong in the directory. For a corrections-only run, choose Skip for missing matches. An email address that changed between sites needs to be reconciled before using it as the matching field.

Match by email and choose how to handle an existing user
Match by email and choose how to handle an existing user.

Enable Automatically Import Media Files for profile images. Keep the source image accessible until the import finishes. When offered a media duplicate action, Skip reuses an existing file that meets the importer’s matching criteria. Click Start Import.

5. Verify a member and check a repeat import

Read the Created, Updated and Failed counters. If both members already exist and their emails match, a successful two-row update should show two updated and zero created. Open Users → All Users and edit a member. Compare the role, department and directory switch with the source. Open the ACF portrait in the Media Library and check that its URL belongs to the destination.

Read the Updated and Created counts separately after a repeat import
Read the Updated and Created counts separately after a repeat import.
Open the destination user profile to check the department, directory setting and image
Open the destination user profile to check the department, directory setting and image.

For periodic site-to-site transfers without an intermediate CSV, see how to sync WordPress users between sites. The file workflow is useful when someone needs to review or edit the member list before it is applied.

Transfer user profiles with an AI agent

Connect the source and destination using the WordPress Abilities API setup guide. Ask the agent to inspect the PRO user schema on each site first. Separate the export request from the import so you can review the selected users and mapping.

On the source site, export only the member IDs I provide to a private CSV. Include login, email, display name, roles and the registered ACF department, directory switch and profile image. Enable headers. Exclude passwords and unrelated metadata. Wait for completion and report the row count.

Prepare this user CSV on the destination. Show the mapping for every column, including all ACF fields. Match by email, update existing profiles, import ACF and download profile media. Leave passwords alone and disable email notifications. Validate the mapping and wait for my approval before starting.

The agent can use rsl-ie-pro/export-start on the source, then rsl-ie-pro/import-prepare and rsl-ie-pro/import-validate with the uploaded file ID on the destination. Check whether the suggested mapping includes each ACF column. Add missing pairs explicitly before authorizing rsl-ie-pro/import-start. After completion, open a destination profile and verify the same fields you checked in the CSV.

Video walkthrough

The video shows an earlier version of the interface. Use the screenshots above for the current mapping screen and import options.

See also: How to Import WooCommerce Customers from CSV.

FAQ

Can I export WordPress users to CSV?

Yes. Import Export by RockStarLab allows you to export WordPress users to CSV and other formats, including Excel, JSON, XML, and ODS.

Can I import WordPress users from another website?

Yes. You can export users from one WordPress website and import them into another website using the plugin’s user import workflow.

Can I export ACF fields attached to users?

Yes. If Advanced Custom Fields are registered for user profiles, Import Export by RockStarLab can include those fields in the user export file.

Can the plugin import images from ACF user fields?

Yes. When the automatic media import option is enabled, the plugin can download images, add them to the WordPress media library, and connect them to the imported ACF user fields.

How should I prevent duplicate users during import?

The recommended option is to check existing users by email, because WordPress user email addresses are unique.

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