Contents

Scheduled Tasks Reference

Name

ps_groups.resync — Give every customer the groups their purchases grant

Description

Gives users the groups their published access subscriptions grant: each product's own groups and its level's. Run it after changing a product's or level's groups, and after an import, whose Access Subscriptions grant no groups by themselves.

It changes at most Users changed per run users, then stops and carries on at its next run, until every user is right. Each run logs how many users it changed and how many groups it added and removed.

Schedule

Run it when you need it, with Run Test until it reports nothing more to do, or give it a schedule (such as hourly) and let it finish by itself. Running it when nothing has changed does no harm.

Options

Also remove groups no purchase grants

Removes a group from a user when a product or level lists it under its remove groups and none of the user's published Access Subscriptions grants it. Groups no product or level removes, such as Registered or ones given by hand, are never touched. Default: No.

Users changed per run

How many users one run changes before it stops and resumes on the next run. Lower it if runs time out. Default: 500.