0

I am looking for hiding contacts in CiviCRM from search results,added to specific group and also Drupal user should be blocked in automatically soon after adding them to a group.Soft delete using civirules is one option.But I don't want the user to get trashed.Any help?

4
  • i think you need to try and explain this a bit more clearly. eg 'blocked' for a user makes sense, but 'thrashed' doesn't. And are you talking about 'drupal users' when you say 'soft delete' as I don't associate that term with Users but I do with Contacts.
    – petednz - fuzion
    Commented May 17, 2018 at 10:11
  • Sorry if I have not clearly explain. Using Civirules, a contact added to a group can be soft deleted so the contact will not be available in quick search results
    – preeti
    Commented May 17, 2018 at 15:06
  • Can you edit your question then to be clear where you are talking about Contacts v Users. It helps if you don't use them interchangeably since they mean quite different entities
    – petednz - fuzion
    Commented May 17, 2018 at 21:27
  • i changed 'thrased' to 'trashed'. hopefully that is what you meant.
    – petednz - fuzion
    Commented May 21, 2018 at 19:44

2 Answers 2

2

This is directly not available through UI, but you can do this by creating your own extension and using hooks like post and queryobject.

HTH

Pradeep

1

You can achieve this via UI with ACLs, but it is somewhat messy and does have some performance implications:

  • Use the Include / Exclude Search to search for all contacts but your specific group by excluding it and create a smart group for it
  • Remove the CMS permission to view / edit all contacts for your desired CMS user role
  • Assign an ACL to read / edit your newly created smart group for your desired ACL role
  • Assign users to the ACL roles

Perhaps you can play around with the Drupal Rules module and its CiviCRM integration to block users beeing added to a group.

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.