Using Drupal Workflow Rules with CiviCRM Entity to create a Drupal User after a new Civi contact is created.
Rule works fine if the only condition is that a new Drupal user can be created for the Civi contact.
I need to add an additional condition to limit the creation of the new Drupal user according to other criteria. Examples might be group membership or a Civi tag or certain Civi contact subtypes.
here is the rule that is not working:
{ "rules_testnewcontact" : { "LABEL" : "TestNewContact", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "civicrm", "rules" ], "ON" : { "civicrm_contact_create" : [] }, "IF" : [ { "civicrm_entity_user_exists_or_creatable" : { "civicrm_contact" : [ "civicrm_contact" ] } }, { "NOT text_matches" : { "text" : [ "civicrm-contact:contact-sub-type" ], "match" : "Client" } } ], "DO" : [ { "civicrm_entity_action_load_create_user" : { "USING" : { "civicrm_contact" : [ "civicrm_contact" ], "is_active" : "1", "notify" : "1" }, "PROVIDE" : { "civicrm_user" : { "civicrm_user" : "Created or Loaded Drupal User" } } } } ] } }