Customer Role Mapping
Map Square customer groups to WordPress user roles.
Role mapping connects Square customer groups to WordPress user roles. When customers sync, their group memberships automatically assign the appropriate WordPress roles.
Overview
With role mapping configured:
- Square groups map to WordPress roles
- Priority determines the primary role
- Multiple group memberships are supported
- Roles sync bidirectionally
How to Configure
- Go to SWS Pro > Settings > Customers
- Find the Role Mappings section
- For each WordPress role, select a corresponding Square customer group
- Set a priority number for each mapping (lower = higher priority)
- Click Save Changes
How Priority Works
When a customer belongs to multiple Square groups, the priority number determines which role becomes primary:
- Lowest priority number becomes the primary WordPress role
- All other mapped roles are added as secondary roles
- No mapping match defaults to the
customerrole
Example Configuration
| WordPress Role | Square Group | Priority |
|---|---|---|
| Wholesale | Wholesale Customers | 1 |
| VIP | VIP Members | 2 |
| Customer | General | 10 |
Scenario: A customer belongs to both "Wholesale Customers" and "VIP Members" groups.
Result: The customer receives the wholesale role as their primary role (priority 1 is lowest), with vip as a secondary role.
Common Mappings
Wholesale Pricing
Map a Square "Wholesale" group to a WordPress "Wholesale" role that receives special pricing.
VIP Customers
Map loyalty program tiers or VIP groups to roles that unlock exclusive content or discounts.
Staff Members
Map employee groups to WordPress roles with administrative access.
Bidirectional Sync
Role mapping works in both directions:
| Direction | Behavior |
|---|---|
| Square → Woo | Square group memberships set WordPress roles |
| Woo → Square | WordPress role changes update Square group memberships |
Troubleshooting
Roles not being assigned
- Verify role mappings are configured and saved
- Check that the customer belongs to a mapped Square group
- Confirm role sync is enabled in customer settings
Wrong role assigned
- Review priority numbers (lower = primary role)
- Check all group memberships in Square
- Verify the mapping configuration matches expectations
Roles not syncing to Square
- Confirm Woo → Square sync is enabled
- Check that the WordPress role has a Square group mapping
- Review sync logs for any errors