I would like to create a Drupal user account when a user becomes a member via a webform. Ideally a user would get redirected from the webform to a profile, but I do not think this is possible?

I have come across this article, which was written over 5 years ago, is it still valid? https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and

It seems like it would work, but for ease would this workflow be suitable?

  1. User applies for account via a profile/Drupal core registration form (Payment pending group/role gets assigned)

  2. Edit some template files so the site checks for current role assigned to a user and displays a message informing they have finalise the membership process and pay if they have the Payment pending role.

  3. User is directed to a webform and pays.

  4. User is removed from Payment pending and Added as a full member

I'm sure both solutions would work. It would be great to hear from other people who have more experience with Civi.


2 Answers 2


You can use Drupal Rules to create the Drupal User for a contact when they get a Membership status of 'x'.

Here is one that KarinG has shared before Using CiviMember to automatically create a Drupal user

Thank you Karin

  • I have posted a detailed example of such on SE previously - perhaps a few months ago Jun 27, 2018 at 3:36
  • 2
    Found it -> civicrm.stackexchange.com/questions/24160/… Jun 27, 2018 at 13:11
  • Marvellous - wondering how we could better tag these for future searchers.
    – petednz - fuzion
    Jun 27, 2018 at 20:10
  • Yeah I had troubles finding it myself :-) Jun 27, 2018 at 23:44
  • That was why i went for the Fuzion Treasure Trove approach of adding example code to a quick blog with taxonomy so easy to find ;-) But I don't think to add everything there that I explain on here. But better to have on here than in Chat where things really disappear without trace
    – petednz - fuzion
    Jun 28, 2018 at 6:19

This rule seems to work when a relationship is added. I have added an extra to to select the type of relationship, as there are multiple on the webform: enter image description here

  • Can you explain this a bit more - I don't follow how this is an Anwer to your own Question since the Q had no reference to Relationships, but only talked about Memberships. COuld you pls edit your question to make it clearer what you were trying to achieve - it will help others who come along in your wake
    – petednz - fuzion
    Jul 6, 2018 at 1:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.