3

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?

0
0

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?".

2
  • Thank you for the VBO suggestion, this worked perfectly! – MRC Oct 17 '16 at 14:14
  • @MRC : merci for the confirmation! Next question? – Pierre.Vriens Oct 17 '16 at 14:26

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.