I have a use case for a project where a user of specific role has access to the site during specific dates. What I want to occur is- when the date passes the user loses his role and access to the site.

Currently, I have this rule working on Cron run, but the only option to me is to react on site:current-user. Is there a way to react on ANY user?


1 Answer 1


A possible approach to make this work, is to process the results of a VBO enabled view via Rules, whereas your rule performs 2 Rules Actions:

  • load the VBO list of users that you want to be processed.
  • add a loop to perform a Rules Action, probably similar to the rule you already have in place, for each user contained in your Views results.

For more details, have a look at the tutorial "How to process the results of a VBO enabled view via Rules?".

  • Thank you for the VBO suggestion, this worked perfectly!
    – MRC
    Oct 17, 2016 at 14:14
  • @MRC : merci for the confirmation! Next question? Oct 17, 2016 at 14: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.