1. Go to Site administration → General → Dynamic rules (or search “Dynamic rules” in Site administration).
  2. Click New rule.
    1. Provide name for your dynamic rule.
    2. Click save to proceed.
  3. Add Conditions:
    1. Search for "Time since user was created".
    2. Select "prior to the last"
    3. Indicate the time (example: 30 days)
  4. Add Action:
    1. Enrol users into a course
    2. Indicate the course, role when enrolled, end date or duration of enrollment and group name if you want to group users that are enrolled using this method.
  5. Save the rule and enable.