My problem is that the users are not registered on the site, the users are being imported from salesforce, so when the data (users) is imported, the system tells me "a user has been created" but not saved. In rules/events, there is no option for my case.

My question is: I must code a custom rule event for this? is there a shortcut for my case?

thanks

nico

Comments

tr’s picture

Issue summary: View changes
Status: Active » Fixed

"After saving a new user account" should work for when a new user is created, regardless of how it is created. But if your importing code is doing something strange like directly writing to the {user} table in the database rather than using the Drupal API to create the user entity, then it may be bypassing the normal Drupal user entity hooks that Rules relies on to generate this event. If that's the case, then you will indeed have to code a custom event for your use case.

tr’s picture

Status: Fixed » Closed (fixed)