I created two rules components but i can't find any module to set specific permissions for roles.

I want to let some role's users to allow run the first component but not the second one.

2 Answers 2


Rules provides a UI to configure access to components based on a permission.

  1. Edit the component
  2. Click to expand "Settings"
  3. Check "Configure access for using this component with a permission"

Rules component permission setting


Add a condition to your component for User has Roles, change the data selector to site:current-user:roles: and set the roles you require for the component to run.

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.