How to Map Custom User Roles Between
WordPress Sites With Different Permission Sets
Your main site has a “Premium Member” role. Your community site calls the same tier “Gold Subscriber.” Your LMS calls it “Advanced Student.” Same person, different role names, different capability sets across every connected site. This guide maps every dimension of cross-site role translation — safely, without over-privileging anyone.
Updated 2026
Technical Deep-Dive & Admin Guide
Custom user roles are one of the most underestimated sources of complexity in WordPress multi-site synchronization. When all your connected sites use identical WordPress installations with identical role structures — same role names, same capabilities, same plugin configuration — role synchronization is straightforward. You sync the role and you are done. But this scenario rarely exists in practice. Sites that have been developed independently over time, or that serve different purposes within the same network, invariably develop different role structures reflecting their specific access requirements.
The divergence happens in multiple ways. A site may use a membership plugin that creates its own role structure. An LMS creates instructor and student roles that do not exist on a WooCommerce store. A community forum plugin creates moderator roles with specific forum capabilities. A multivendor marketplace creates vendor roles with product management permissions. When a user needs to be recognized across sites that each have their own independently evolved role systems, the question of how to translate their role from one site to another becomes genuinely complex — and the stakes are high, because getting it wrong can mean a user arrives on a site with either no meaningful access or dangerous over-privilege.
This guide provides the systematic framework for cross-site WordPress role mapping. It covers how WordPress stores roles and capabilities at the technical level, the different types of role divergence that exist between connected sites, the role mapping strategies available and their tradeoffs, and how to configure WordPress cross-site role mapping and permission translation in a way that is secure, documented, and maintainable as your network evolves.
This is a technical guide. It requires comfort with WordPress role and capability concepts. If you are new to these concepts, the first section provides the foundation needed for the rest of the guide to make sense. If you are already familiar with WordPress capabilities, you can move directly to the section on mapping strategies.
How WordPress stores roles and capabilities: the technical foundation
WordPress distinguishes between roles and capabilities, and the distinction is critical for cross-site mapping. A capability is a specific permission — edit_posts, publish_posts, manage_options. A role is a named group of capabilities. When WordPress checks whether a user can perform an action, it checks their capabilities, not their role name. The role is simply a convenient way to assign a bundle of capabilities to a user.
This distinction has a crucial implication for cross-site sync: two sites can have roles with the same name that grant completely different capabilities. A role called moderator on Site A might grant forum moderation capabilities and nothing else. A role called moderator on Site B might grant editorial capabilities that include publishing and deleting posts. Syncing the role name without mapping it to the appropriate capability set on the destination site may produce entirely different — and potentially dangerous — access levels.
-- User's role is stored as serialized data in wp_usermeta -- meta_key = 'wp_capabilities' (or prefix_capabilities) -- Example: a user with the 'editor' role meta_key: wp_capabilities meta_value: a:1:{s:6:"editor";b:1;} -- Example: a user with a custom 'premium_member' role meta_key: wp_capabilities meta_value: a:1:{s:14:"premium_member";b:1;} -- Example: a user with multiple roles (some plugins allow this) meta_key: wp_capabilities meta_value: a:2:{s:8:"customer";b:1;s:14:"premium_member";b:1;} -- The capabilities for each role are stored in wp_options option_name: wp_user_roles -- This serialized array maps role names to their capability sets
When a user sync operation delivers a user record from Site A to Site B, it delivers the serialized wp_capabilities value from Site A. If Site B has the same role name registered in its own wp_user_roles option, WordPress will assign the user that role on Site B. If Site B does not have that role name, the user will have a role name stored in their capabilities meta that does not correspond to any registered role — effectively no meaningful permissions. If Site B has a role with the same name but different capabilities, the user will have those different capabilities, which may be more or less than what they should have.
Role mapping in a sync plugin intercepts this process. Instead of delivering the raw wp_capabilities value from Site A, it translates the user’s role name to the appropriate role name on Site B before writing the user record. This translation is defined in the role mapping configuration and is evaluated per-connection, per-role.
The four types of role divergence between connected sites
Before you can configure role mapping, you need to understand what type of divergence exists between the sites you are connecting. The four types below are distinct and require different mapping approaches.
The conceptual access tier is identical on both sites but the role name differs. Site A has premium_member. Site B has gold_subscriber. Both represent “the highest tier of paid access.” Both grant equivalent content access on their respective sites. The user’s access level is conceptually the same — only the label differs.
premium_member (Site A) → gold_subscriber (Site B). The mapping is one-to-one and unambiguous. Verify that the capability sets are genuinely equivalent before treating this as a simple name substitution.Site A has three membership tiers: Basic, Standard, and Premium. Site B only has two access levels: Member and Premium Member. There is no direct one-to-one mapping available. A user with the Standard tier on Site A needs to be mapped to either Member or Premium Member on Site B — a judgment call that requires understanding the relative access levels on each site.
Both sites have a role named moderator. On Site A, a forum plugin created this role with capabilities to approve and delete forum posts. On Site B, an editorial team created this role to give staff the ability to publish, edit, and delete all posts. The role names are identical, but the capability sets are entirely different. If user sync copies the wp_capabilities field directly from Site A to Site B without role mapping, users with the Site A moderator role will arrive on Site B with the Site B moderator role’s capabilities — which may include the ability to delete any content on the site.
Site A runs WooCommerce and has a shop_manager role created by WooCommerce. Site B does not have WooCommerce installed and therefore does not have this role. If a shop manager’s account is synced to Site B without role mapping, their wp_capabilities will contain shop_manager as their role, but this role is not registered on Site B. WordPress will treat them as a user with no valid role — effectively no permissions at all. Similar issues arise with LMS-specific roles, multivendor platform roles, and any plugin-created role that does not exist on the destination site.
shop_manager who is an employee needing content management access on a content site might map to editor. A WooCommerce customer maps to subscriber on a non-WooCommerce site.The three role mapping strategies and when to use each
Once you have identified the type of divergence, you choose the mapping strategy. There are three fundamental approaches, each suited to different divergence types and network architectures.
Use for: D1, D4
Each role on the source site is explicitly mapped to a specific role on the destination site. The mapping is defined as a lookup table in the sync configuration: source role name → destination role name. When a user record is synced, the sync plugin replaces the source role name with the destination role name before writing the user’s capabilities to the destination database. The destination role must exist on the destination site — the mapping creates no new roles.
Use for: D2, D3
Before configuring the role name translation, verify the capability sets of both the source role and the intended destination role. Use WordPress’s get_role() function or a roles management plugin to inspect and compare the capability arrays of both roles. Only map source role X to destination role Y if the capabilities granted by Y on the destination site are appropriate for the user’s access level as defined by X on the source site. The mapping is still a direct name translation — but it is preceded by a capability-level analysis that confirms the translation is semantically correct, not just lexically convenient.
Use for: admin, editor, site-specific roles
Some roles should never be synced between sites, regardless of what their conceptual equivalent might be on the destination. Any role that grants administrative, editorial, or site-management capabilities — WordPress administrator, editor, shop_manager, WooCommerce shop_manager, and any equivalent in other plugins — should be in the exclusion list for every connection. Users with these roles are staff, not customers. Their administrative access is site-specific and should not propagate to other sites through the sync system. If a staff member also needs access to a connected site, their account there should be configured directly by an administrator on that site, not inherited through sync.
administrator, editor, shop_manager, and any plugin-specific management role. These must be in the exclusion list on every connection, on every site in your network.Auditing role structures before configuring mapping
Role mapping configured without a thorough audit of both sites’ role structures is guesswork. Before you configure any mapping, you need a complete picture of every role that exists on every connected site, what capabilities each role grants, and what user population currently holds each role. This audit is the basis for every mapping decision you make.
$wp_roles = wp_roles(); foreach ( $wp_roles->roles as $role_slug => $role_data ) { echo "Role: {$role_slug} ({$role_data['name']})n"; // Show capabilities granted to this role $caps = array_keys( array_filter( $role_data['capabilities'] ) ); echo " Capabilities: " . implode( ', ', $caps ) . "nn"; } // Count users per role $counts = count_users(); foreach ( $counts['avail_roles'] as $role => $count ) { echo "Users with role '{$role}': {$count}n"; }
Run this audit on every site in your network before configuring any role mapping. Collect the output into a comparison document that shows, side by side, every role that exists on each site and the capabilities each role grants. This document is your role mapping reference — every mapping decision should be traceable back to a row in this comparison.
For sites with large numbers of custom roles — particularly sites that use multiple membership plugins, LMS plugins, or multivendor plugins that each create their own role structures — this audit may reveal dozens of roles. Work through each one systematically. Every role that exists on the source site needs a mapping decision: translate to a specific destination role, or exclude from sync. There should be no unmapped roles in your final configuration.
The over-privileging risk: why this is a security problem, not just a UX problem
Role mapping errors that result in users receiving lower access than they should have are inconvenient. Role mapping errors that result in users receiving higher access than they should have are security incidents. This distinction is not academic — misconfigured role mapping that delivers users to a site with edit_others_posts, delete_others_posts, or manage_options capabilities they do not have on the source site represents a meaningful access control failure.
The test for whether a role mapping is safe is to compare the capabilities granted by the destination role against what the user is entitled to based on their source role. Every capability granted by the destination role that is not appropriate for the user’s access level represents an over-privilege. The test is practical: after configuring a role mapping, create a test user with the source role and sync them to the destination site. Log in as that test user and attempt to access every type of administrative or elevated action. Any action that succeeds unexpectedly indicates an over-privilege in the role mapping that must be corrected.
Common multi-plugin role mapping scenarios with recommended translations
The following table covers the most common cross-site role mapping scenarios for typical WordPress multi-site network configurations. These are starting points — verify the capability sets on your specific installations before using any of these mappings in production.
customersubscriber — customers need read + participate access, not create accessshop_managereditor or exclude — depends on whether shop managers need content access. Default: exclude.group_leadercustomer — instructors are customers of the store, not managers. Their LMS role is site-specific.mepr-activemember or custom community role — active membership status translates to community participation accessbbp_moderatorcustomer — forum moderators are customers on the store; their moderation role is forum-specific and does not transferadministratorThe role mapping documentation template
Role mapping configuration that lives only in a plugin settings panel is configuration that will be lost or misunderstood when the person who set it up is no longer available. Document every mapping decision in a format that a future administrator can understand and audit without needing access to the original setup person’s knowledge.
premium_member → gold_member [rationale: equivalent paid tiers, verified capability match]
shop_manager → [EXCLUDED] [rationale: staff role, site-specific]
administrator → [EXCLUDED] [rationale: mandatory exclusion, all connections]
Role mapping is not a set-and-forget configuration. Every time a plugin is updated on either site — especially membership plugins, LMS plugins, or any plugin that manages user roles — there is a risk that the update has changed the capability set associated with a role. A plugin update that quietly adds edit_posts to a role that previously only had read will silently change the access level of every user who arrives on the destination site with that mapped role. The annual review schedule in your documentation exists for exactly this reason.
Nexu User Sync’s per-connection WordPress role mapping with explicit exclusion controls provides the interface for defining every source-to-destination role translation, excluding administrative roles, and maintaining the documented mapping configuration that access control governance requires. The mapping is per-connection and per-role — giving you precise, auditable control over what every user arrives with on every connected site in your network.
Every user arrives on every connected site with exactly the right role. No guesswork. No over-privilege.
Nexu User Sync provides per-connection role mapping with explicit source-to-destination translations, administrative role exclusions, and the documented configuration that access control governance demands across WordPress multi-site networks.
Tried using this for our hospital's network of sites with different membership plugins, and the role mapping just doesn't handle permissions the way we need. Our "Volunteer Coordinator" role on the main site is supposed to have edit_posts but not publish_posts yet after syncing, it suddenly gave them full publishing rights on the forum site
Finally a guide that explains role mapping without oversimplifying it!
This solved our biggest headache with vendor roles across three separate marketplaces. The audit tool alone saved hours of manual cross checking permissions. Finally, no more guessing if a vendor has the right access.
This role mapping guide just saved me hours of manual permissions work