Skvare / com.skvare.cmsuser

Create CMS user in Bulk using Groups AND Tag assigned to Contacts.
Other
2 stars 5 forks source link

User Creation without proper naming or activity loogging #8

Open mferraznw opened 1 year ago

mferraznw commented 1 year ago

Hi:

The user is being created, but rather than the userid being: {contact.first_name}-{contact.last_name}-{contact.contact_id} It's simply the email address. The user role is being set properly, but the association of the Drupal user to the Contact isn't occurring. Finally, there is no activity log, nor is the user ending up in the specified group at the end of the process. It's almost like it's crashing somewhere, but I have no logs or anything to review. Help D9 Civi latest -Mark

sunilpawar commented 1 year ago

@mferraznw can you debug the $params at https://github.com/Skvare/com.skvare.cmsuser/blob/master/CRM/Cmsuser/Utils.php#L61

and $ufmatch at https://github.com/Skvare/com.skvare.cmsuser/blob/master/CRM/Cmsuser/Utils.php#L46

Does contact have first name and last name filled ?

sunilpawar commented 1 year ago

Also provide D9 and CiviCRM version.

mferraznw commented 1 year ago

Drupal 9.5.2 Civi 5.57.2

$params: Array ( [cms_name] => TestFirst108-TestLast108-2989 [contactID] => 2989 [notify] => 1 [custom_fields] => Array ( [field_first_name] => TestFirst108 [field_last_name] => TestLast108 )

[email] => testfirst108@testlast108.com
[version] => 3
[cms_pass] => 78abebbc88004339b2c5404341f5aae5

)

$ufmatch: Array ( [uf_id] => 8444 [contact_id] => 2989 [uf_name] => testfirst108@testlast108.com )

mferraznw commented 1 year ago

image