I'm looking for a way to make a user role expire after 1 year. In Drupal 7 there is the Role Expire module. I found this post using the Rules module. But I can't seem to figure out how to do this in Drupal 8.

More specific, what I want is for a user to buy a Commerce product when payed, the user gets a user role to read articles behind a paywall. This role should be active for a year.

The only option I found is building a custom module but I want to try and find an other to do this first. Hope someone can help with a good suggestion or a push in the right way.

2 Answers 2


Below are the following ways to do this:

1.As same as role expire another module User expire is available User Expire.

2.By using Rules module you can expire the role after 1 Year.

Try these Modules hope this will help you.

  • Hi, thanks for your quick reply. Before posting my question I already tried both modules. Via User Expire I have to set the date of expiring manually, and I want it to be automated when I commerce order is payed. With Rules I can't figure out how to expire a role. See my original question and the post I found about rules in drupal 7. I can't seem to find the same functionality in the Drupal 8 variant of Rules. Could you help me a bit more with how to...in these two modules?
    – Joost
    Oct 19, 2016 at 12:28

Module Role expire has now a working version for Drupal 8.

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.