← All guides

Docebo enrollment rules, Automation or API for large audiences

Which Docebo mechanism should enroll 20,000 people: enrollment rules, Automation or the API. The backfill gap, the capacity bypass and who owns each.

Concept illustration for Docebo enrollment rules, Automation or API for large audiences

“Everyone in sales needs the new compliance course by the end of the month, and every new starter in sales after that.” It sounds like one request. In Docebo it is two jobs, and the mechanism that handles the second one does nothing for the first.

The first job is the backfill: the people already in the audience today. The second is the flow: people who join the audience from now on. The usual mistake is to get the flow right and forget the backfill, or the reverse. This guide is how I choose between enrollment rules, the Automation app and the API, and how I keep the choice from surprising anyone six months later.

What each mechanism does

Enrollment rules

An enrollment rule enrolls users into courses or learning plans “upon joining a particular group or branch” (Activating and managing the Enrollment rules app). The same article sets the limits that matter at scale:

  • The rule fires only when a user is added to the group or branch. Pre-existing members are not enrolled.
  • Adding a course to an existing rule does not enroll the people already in its groups or branches. Removing a course does not unenroll anyone.
  • One rule uses groups or branches, never both, and courses or learning plans, never both.
  • Rules work for e-learning courses, ILT courses and learning plans, but not for ILT sessions.
  • Rules do not enroll deactivated users.
  • Rules bypass the course’s maximum enrollment quota.
  • Rules are created inactive. A Logs tab records each automatic enrollment, and a rollback unenrolls users from everything a rule gave them, as a background job.

The Automation app

The Automation app runs rules on a condition, either in real time or on a daily, weekly or monthly schedule (Creating a rule for the Automation app). Reading the actions Docebo lists there, they are imports (users, branches, Power User mappings and courses from CSV, including from an FTP or SFTP folder), setting a user expiration date, and sending course, enrollment or transaction information to an endpoint, exporting a report to CSV, and showing or hiding content-partner courses in catalogs. Enrolling users is not one of the listed actions.

That makes Automation a feeder, not an enroller. A scheduled CSV import puts people into the right branch; an enrollment rule on that branch does the enrolling. Docebo documents that a rule fires when a user is added to a branch, but not whether an Automation import counts as that, so confirm it with the pilot user in step 6.

The API

The API enrolls explicitly. Docebo’s connector reference maps its enroll action to POST /learn/v1/enrollments/{course_id}/{user_id}, which raises the course.enrollment.created webhook event (Connector: Enrollments). The API answers to rate limits per identity, with no published quota (Best practices for handling API rate limits and 429 errors), and batch endpoints must not be called concurrently (API general information).

The decision

SituationMechanism I reach for
Audience defined by a branch or group, new joiners must be enrolledEnrollment rule
Audience membership comes from an HRIS fileAutomation import into branches, plus a rule
One-off backfill of people already in the audienceMass enrollment from the UI, or the API
Enrollment depends on logic Docebo cannot see (a contract date in another system)API, from Connect or middleware
ILT sessions, not coursesNot a rule; enroll per session (UI or API)

My rule is simple: membership drives enrollment. If you can express the audience as a branch or group, let a rule do the flow and spend your effort keeping membership correct. Reach for the API only when the deciding fact lives outside Docebo.

Steps: enrolling a large audience without gaps

  1. Name the audience as a group or branch. If it is neither today, create a group. Docebo’s own use case chains automatic groups to rules for onboarding sequences (Enrollment rules app).
  2. Build the rule, leave it inactive. Give it a code your team can search for, assign the groups or branches, then the courses or learning plans.
  3. Decide the validity period now. The rule’s Enable deadline option sets one validity window for everyone it enrolls; Docebo expresses start and end dates in UTC.
  4. Activate the rule. From here on, joiners are covered.
  5. Backfill the existing members. The rule will not do it. Enroll the current audience once and record the count. Docebo documents enrolling every user in a branch from the UI (Organizing users with branches); the API is the alternative when the list comes from another system.
  6. Test with a pilot member. Add one test user to the group and confirm the enrollment appears in the rule’s Logs tab.
  7. Reconcile. Audience size, minus deactivated users, should equal enrollments. Check it again after the first week of joiners.
# Worked example, numbers illustrative
sales branch today:        4,180 active users
rule activated:            day 0 (flow covered)
backfill by API, day 0:    4,180 enrollments, 0 failed
joiners week 1 (rule log): 37
course enrollments day 7:  4,217  -> matches

Failure modes and how they present

  • The backfill gap. The rule is live, the dashboard shows 40 enrollments, and 4,000 people already in sales have nothing. The rule did exactly what Docebo documents.
  • The late course. Someone adds a second course to an existing rule and assumes the audience has it. Only joiners after the change will. Docebo’s suggested workaround is to remove members and add them back.
  • The ILT overbooking. A rule enrolls into an ILT course with a capacity of 20 and enrolls the whole branch, because rules bypass the maximum quota.
  • The ghost re-enrollment. Automatic groups are recalculated asynchronously. Docebo warns that members briefly removed and re-added can trigger a rule unexpectedly, including for content added after they first joined.
  • The silent stop. An Automation rule stops running because the Superadmin who configured it was downgraded to another user level. Docebo documents this: deactivation alone does not stop it, a level change does (Creating a rule for the Automation app).
  • The drifting schedule. Scheduled Automation rules take the time zone of the user who last saved them, so an edit from another office moves the run.
  • The parallel API backfill. Ten threads on one identity, a wall of 429s, and a backfill that “finished” with gaps nobody counted.

Governance: who owns the rules

Keep a short register of every active enrollment rule: code, audience, content, validity, owner, date activated, and whether a backfill was done. Without it, nobody can answer “why was this person enrolled?” except by reading logs.

Delegation is possible but scoped. Power Users can manage rules only with the Enrollment / Manage enrollment rules permission, and only for resources assigned to them; attaching notifications to a rule is Superadmin-only (Enrollment rules app).

Automation rules should be owned by a named Superadmin account that will not be downgraded in a role review. Write that dependency down.

And keep the rollback path in mind before go-live: the rule log is your undo button, and deleting a rule does not remove the enrollments it already made.

Working on this yourself? J4SGON S.L. delivers Docebo Connect, HRIS, SSO and migration work for European organisations — see what a scoped engagement covers or describe your project and we will reply with a written scope.