Drupal 7 OG Group Unsubscribe after given time period for member I am new to drupal 7 and was willing to implement something like time based unsubscription from a OG Group.

I have users added in OG Group. I want to implement time based unsubscription of the users already added in the group say 'Computers'.

User say 'Tony' is added to the group 'Computers' today, now I wish that a user 'Tony' should be unsubscribed from the group 'Computers' after a subscription of 3 months (a specific time period).

A Notification message should be sent to user 'Tony'.

All the process should be based on systems current date and the joining date of user 'Tony' to the group 'Computers'.

Please help me with any solution.
This is definitely a job for rules. It is also quite a complexed subject as you are going to need to utilise components so that you can schedule this to happen every day. I would do it like this:


Set up a views_bulk_operations view that looks up all users that have been members of groups for 90 days.
Create a rule component that loads the list of users, loops through the list, sends a notification and unsubscribes the user from the group.
Schedule the rule to do this every day.