Problem/Motivation

There is not a way to create a user contact mapping when a user is created that only looks for an existing contact.

Steps to reproduce

Proposed resolution

Add a new setting to control if the event is fired when a user is created.

Remaining tasks

User interface changes

A new checkbox is added to the top of create_event details.

API changes

This new settings controls if the event is fired. The existing auto_create_user_contact_mapping will be used inside the event subscriber.
Add another method to the Event Subscriber that handles contact creation. This new method is also subscribed with a heavier weight. A contact is only created if the user contact mapping does not have a contact.

Data model changes

crm.user_contact_mapping.settings:
Add a new property: fire_event_user_insert

Create crm_update_1001for the new property. Its value should be the same as auto_create_user_contact_mapping

Issue fork crm-3569188

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bluegeek9 created an issue. See original summary.

bluegeek9’s picture

Issue summary: View changes

bluegeek9’s picture

Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging CRM as a favorite on the project page to help others discover it and show your support.
  • Review the Developer Docs for accuracy and clarity.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bluegeek9 committed 7bda3ed9 on 1.0.x
    feat: #3569188 User Mapping: setting to fire during user insert
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.