2

I have the CiviGroup Roles Sync working fine but realistically i want to link Drupal Roles to the CiviCRM Contact Types.

Is this possible? So if i add a role in Drupal it will be reflected in Civi? Instead of being added into a group.

Thanks,

Moe

4
  • I have figured out how to do this using CiviRules however there is no option to "REMOVE" a contact type.
    – Moe
    Aug 1, 2019 at 8:53
  • So for example: if you have Individual sub-types of Student, Parent & Staff and you have corresponding Drupal roles, and you add/remove the Parent role to a user then you want the contact to have the Parent sub-type added/removed automatically? (Be aware that removing a sub-type from a contact risks losing custom data.)
    – Aidan
    Aug 1, 2019 at 9:35
  • @Aidan - yes that is correct. I am using CiviRules for adding and its working but removing there is no CiviRule action to unassign a contact type
    – Moe
    Aug 1, 2019 at 9:44
  • That almost certainly is on purpose -> that would be very dangerous. Removing a Contact Type can delete a truckload of data; Why do you map it to Contact Type? Why not use Tags eg? Aug 1, 2019 at 13:55

1 Answer 1

1

Can you create a smart group for each contact type and then use CiviGroup Roles Sync?

Also if you add contact sub type field on the user registration profile and so that you can update the contact type and role on same screen.

HTH

Pradeep

1
  • I will try this
    – Moe
    Aug 7, 2019 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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