I want to set a different values for different users(Read/write permission) by using php not by a customizing (Drupal menu - > People -> permission).

1 Answer 1


Assuming you are interested in CiviCRM permissions rather than Drupal content, take a look at the Hooks section in the Developer guide, specifically the Permission Hooks subsection.

  • I am using drupal as CMS. Depending upon user login, it should show the data depending upon user role.How can I match the CMS and CRM user?
    – Dipak Giri
    Commented Nov 14, 2018 at 5:08
  • In that case, take a look at docs.civicrm.org/sysadmin/en/latest/integration/drupal/… to sync between a Drupal Role and CiviCRM Group
    – Aidan
    Commented Nov 14, 2018 at 12:26

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.