Skip to main content

Role Mapping

AMS Connect currently supports the following role mapping options with re:Members (Impexium):

  1. Member/Non-Member
  2. Membership Type
  3. Certification
  4. Committee
  5. Security Role
  6. Purchase
  7. Event

Initial Setup​

Once your credentials are verified on the Connection screen, open AMS Connect → Role Mapping. The Member/Non-Member mapping always applies. Every other type has its own card with an Apply this mapping toggle: turn it on, click Add mapping, and pair a value from re:Members with a WordPress role. The role can be one your site already has, or choose Create a new role… and type a name — the role is created when you save. Click Save mapping to apply your changes.

A card that is switched off keeps its mappings but does not apply them, so you can prepare a mapping before turning it on.

Member/Non-Member​

This feature looks for an active membership on the user's individual account record. If it finds any active memberships, it will grant the user the roled mapped to "Member". If there are no active memberships, the user will be granted the role mapped to "Non-Member".

With no role mapped, new sites grant lowercase member and non-member roles, labelled "Member" and "Non-Member". Role editors such as the Members plugin lowercase a role's key when they save it, so lowercase keys are the ones they can edit.

Sites set up before this change keep the Member and Non-Member roles they already have, and nothing changes until you choose. To switch them to lowercase, run wp amsc roles normalize --dry-run to see what would change, then wp amsc roles normalize. It renames the roles, keeps their capabilities, moves every user who holds them, and updates any saved mapping that points at them.

By default, membership access starts on the earlier of effectiveDate or joinDate. If your organization requires strict term-start access, enable Honor Effective Date on the Connection screen.

warning

AMS Connect currently only supports users with a single membership. If multiple memberships are detected on the user, AMS Connect will grant the "Member" role if any of the memberships are current and will set the Membership Type and Membership Expiration user meta fields based on the first membership

Membership Type​

AMS Connect for WP automatically populates the Membership Type dropdown with membership types that have been created in your re:Members account. Simply select the Membership Type from the drop down and the role you would like users with that Membership Type to be assigned.

Membership Type card, with the list of membership types pulled from re open on a new row

tip

If you don't see the Membership Type you are looking for, click Refresh AMS data at the top of the Role Mapping screen to reload the list from re:Members.

Certifications​

AMS Connect for WP allows you to map Certifications to WordPress Roles. re:Members does not have a way to pull in all Certifications from your account, so you will have to input the Certification Code to enable the mapping.

Certification Type card mapping the CPM certification code to the Certified Member role

Committees​

AMS Connect for WP automatically populates the Committees dropdown with the committees in your re:Members account. This dropdown will only populate with active committees. Simply select the Committee from the drop down and the role you would like users who are in that committe to be assigned.

Committee card, with the list of committees pulled from re open on a new row

tip

If you don't see the Committee you are looking for, click Refresh AMS data at the top of the Role Mapping screen to reload the list from re:Members.

Security Role​

AMS Connect for WP allows you to map Security Roles to WordPress Roles. re:Members does not have a way to pull in all Security Roles from your account, so you will have to type the security role name, exactly as it appears in re:Members, to enable the mapping.

Security Role card mapping the Administrators security role to the Editor role

Purchases/Products​

AMS Connect for WP allows you to map purchases/products to WordPress Roles. re:Members does not have a way to pull in all products from your account, so you will have to input the product code to enable the mapping.

Purchase card mapping product code WORKSHOP-A to a new Workshop Attendee role

Events​

AMS Connect for WP allows you to map Events to WordPress Roles. re:Members does not have a way to pull in all events from your account, so you will have to input the event code to enable the mapping.

Event card mapping event code AC2026 to a new Conference Attendee role