Back to blog
4 min read Export Guides

Export WordPress Users to CSV with Roles, Registration Date and Custom Fields

WordPress has no button to export the list of users. The Users screen shows names, emails and roles, but not as a file, and fields that plugins add to user profiles, such as WooCommerce billing addresses or membership levels, are not shown at all. With Import Export by RockStarLab PRO, you choose which users to export, pick the columns, including those custom fields, and download a CSV or Excel file.

PRO: user export is part of the PRO plugin. The test below used Import Export by RockStarLab PRO 2.1.31 and WordPress 7.1.

Short Answer

Go to Import Export by RockStarLab > Export and choose Users. Filter by role, registration date or any other field, then drag in the columns you need: username, email, first and last name, roles, registration date, and custom fields from the Custom Fields group as meta_<name> columns. Export to CSV or Excel. The file leaves passwords out, so it is safe to share.

Choose Which Users to Export

In the plugin’s Export, we chose Users. On the Filters step we added two filters: Role equals customer, and Registration Date greater or equal 13/11/2026. Three of the site’s 19 users matched:

User export Step 2 with filters Role equals customer and Registration Date greater or equal 13/11/2026, 3 items available
Customers registered since 13 November.

Without filters, every user is exported. Other useful filters: Email contains a domain, Posts Count greater than 0 for people who have published something, or a custom field.

Pick the Columns

On the Fields step we dragged in Username, Email, First Name, Last Name, Roles and Registration Date, and from Custom Fields the WooCommerce fields billing_city and billing_country:

User export Step 3 with Username, Email, First Name, Last Name, Roles, Registration Date, billing_city and billing_country columns
Profile columns and two custom fields from WooCommerce.

The Custom Fields group lists the profile fields that plugins store for users on this site. Roles, login sessions and per-site screen settings are not in it, and fields of Advanced Custom Fields have their own group. To export every custom field of each user at once, use the User Meta (JSON) column in the Stats group, which writes them as JSON in one cell.

We chose CSV and exported. The file:

user_login user_email first_name last_name roles user_registered meta_billing_city meta_billing_country
anna.weber anna.weber@example.com Anna Weber customer 2026-11-13 16:50:55 Berlin DE
lenafischer lena.fischer@example.com Lena Fischer customer 2026-11-13 16:56:30 Vienna AT
omarhaddad omar.haddad@example.com Omar Haddad customer 2026-11-13 16:56:30 Lyon FR

Columns You Can Export

  • Basic: ID, Username, Email, Display Name, Nice Name.
  • Profile: First Name, Last Name, Nickname, Bio, Website, Avatar URL.
  • Role & Permissions: Role (the first one), Roles (all of them) and Capabilities.
  • Preferences: language, admin color scheme, visual editor.
  • Stats: Posts Count and Registration Date.
  • Social Media: the profile links WordPress and SEO plugins add.
  • Custom Fields and ACF Fields, as described above.

Things to Know

  • Passwords stay out of the file, so you can send it to a colleague or a client safely. To move users with the passwords they already have, the PRO import takes password hashes and stores them unchanged.
  • Import back. The same file imports with Import > Users, matching existing users by email or username; meta_ columns are saved as the same custom fields.
  • WooCommerce customers with order counts and total spent have their own export; see exporting WooCommerce customers.
  • Personal data. A user export contains emails and addresses. Store the file like any other personal data, and delete it when you are done.

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, which customers have a billing address in Germany? Show their email and role.

In our run, the agent called rsl-ie-pro/export-preview with the export type user, the role customer, a meta_query on billing_country equal to DE and the fields email, roles and meta_billing_country. It returned one user, anna.weber@example.com.

FAQ

How do I export all WordPress users to CSV?

Choose Users in the plugin’s Export, skip the filters, pick the columns and export to CSV. Every user of the site is in the file.

Can I export users with custom fields?

Yes. Fields that plugins store in user profiles appear in the Custom Fields group as meta_<name> columns, and the User Meta (JSON) column exports all of them in one cell.

Can I export only users with a certain role?

Yes. Add the filter Role equals, for example customer, subscriber or author.

Can I move users with their passwords?

Yes. The export keeps passwords out of the file, and the PRO import takes password hashes and stores them unchanged, so users log in on the new site with the passwords they have.

Get the free plugin on WordPress.org. User export and import are part of PRO.

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