Disclaimer: This article includes functionality for the Enrollment Rules Builder, available in customer sandboxes starting November 23, 2026, and to be released to all clients on January 20, 2027. If you see differences between this article and your platform, check back at that time.
Introduction
The Enrollment Rules Builder (ERB) lets Superadmins define, in one place, the logic that automatically enrolls users in and unenrolls users from courses, learning plans and certifications. Instead of enrolling or unenrolling users the moment something changes, the Enrollment Rules Builder evaluates every active rule once a day and applies the resulting changes in a single run. Because every run recalculates enrollments from a fresh snapshot of your rules and user data, the result is predictable and stays stable even on platforms with thousands of rules and a very large number of users.
The Enrollment Rules Builder replaces the Enrollment rules app as the way to automate enrollments in the platform. The Enrollment rules app relies on automatic groups and reacts to changes in group membership. The Enrollment Rules Builder brings enrollment and unenrollment logic into a single interface with its own conditions, so you no longer need to build and maintain nested automatic groups only to drive enrollment automation.
Please note: Automatic groups are not being deprecated. You can continue to use them in your platform as you do today, for example to control the visibility of pages and menus, catalogs and channels, or to target notifications.
The Enrollment Rules Builder starts in preview mode. In preview mode, it does not enroll or unenroll anyone. It starts applying your rules only once you promote it to active. If your platform uses the Enrollment rules app, migrate your existing rules first, as described in Migrating from the Enrollment rules app to the Enrollment Rules Builder.
Why use the Enrollment Rules Builder
Organizations that rely heavily on automatic groups and enrollment rules can run into two problems as their configuration grows. First, every time a user profile changes, the platform has to recalculate every automatic group that could be affected, which becomes heavier as the number of groups and rules grows. Second, removing users from content automatically has so far required complex combinations of nested groups, manual work or Docebo Connect recipes, because the Enrollment rules app has no unenrollment logic of its own.
The Enrollment Rules Builder addresses both problems. It manages enrollment and unenrollment together, it runs on a predictable daily schedule instead of reacting to every change and it records what it did, and why, in an activity log and in the audit trail.
Who can use the Enrollment Rules Builder
The Enrollment Rules Builder is available to Superadmins only. Power Users will be able to use it in a later release.
Key concepts
The following table introduces the terms used in this article.
| Term | Meaning |
| Rule | A configuration that defines which users to enroll or unenroll, in which content, based on one or more conditions. |
| Set of conditions | A group of one or more conditions in a rule, combined with AND or OR logic. A rule can contain several sets, which are also combined with AND or OR logic. |
| Resource | A course, learning plan or certification that a rule enrolls users in or unenrolls users from. |
| Run | The daily process in which the Enrollment Rules Builder evaluates every active rule on the platform and applies the resulting enrollments and unenrollments. |
| Orphaned enrollment | An enrollment created by a rule that has since been deleted. The enrollment stays active but is no longer managed, or automatically unenrolled, by any rule. |
The Enrollment Rules Builder interface
To open the Enrollment Rules Builder, select Navigation menu > Configuration > Automation > Enrollment Rules Builder. You can also select Jump to on the Enrollment Rules Builder card in the Launchpad.
The Enrollment Rules Builder has two tabs, Activity log and Rules. The New rule button in the top right corner of the page is available from both tabs.
Activity log tab
The Activity log tab shows the results of the runs from the last 60 days: which rule did what, to which user and why, including the actions that were skipped or blocked. The tab also shows when the next run is scheduled. See Reviewing the activity log.
Rules tab
The Rules tab lists every rule configured on the platform. From here, you can create, edit, activate, deactivate and delete rules.
Creating and configuring a rule
To create a rule, select New rule in the top right corner of the page. Give the rule a name, which is required to save it. You can also add a code and a description to help you identify the rule later.
A rule needs at least one condition before you can activate it. An active rule that has conditions but no resources does not produce any enrollments.
Please note: You must select resources individually. There is no option to select all courses or a similar shortcut, so add every course, learning plan and certification the rule should affect.
Building conditions
Conditions work in a similar way to the conditions of automatic groups, with higher limits. Within a set and between sets, you choose whether all conditions must match (AND logic) or whether at least one is enough (OR logic). This lets you build detailed targeting without chains of nested groups.
The following condition types are available.
| Condition type | Based on |
| User fields | Standard fields of the user profile, for example the email address or the language. |
| User additional fields | User additional fields configured for user profiles. |
| Branches | The user's position in the organization chart. |
| Manual groups | Membership of a manual group. |
| Enrollment status | The user's enrollment status in a specific course. |
Branch and manual group conditions support both the belongs to and the does not belong to operators. The following limits apply.
| Item | Limit |
| Sets of conditions in a rule | Up to 60 |
| Conditions in a set | Up to 20 |
| Branches in a single branch condition | Up to 100. Only the branches you select count toward the limit, not their sub-branches. |
| Manual groups in a single manual group condition | Up to 10 |
| Values in a single is equal to or is not equal to condition on a text user additional field | Up to 150. Each value can be as long as the field allows, up to 255 characters. |
| Values in a single email condition | Up to 150 |
| Values in a single dropdown, country or language condition | Up to 10 |
| Values in a single contains condition | 1 |
| Courses in a single enrollment status condition | 1 |
Assigning resources
Resources are the content a rule enrolls users in or unenrolls users from: e-learning courses, ILT courses, learning plans and certifications. A single rule can mix different types, for example enrolling matching users in both a course and a learning plan. To add resources to a rule, select Assign resources.
Please note: Unassigning a resource from an active rule does not unenroll the users who were already enrolled in it through that rule. Their enrollments stay in place.
Enrollment behavior
In the Enrollment behavior section, define how the rule enrolls users.
The Skip deactivated users option is on by default. With this option on, deactivated users are not enrolled by the rule, even if they match its conditions, and each skipped user is recorded in the activity log for that run.
You can also set an enrollment priority for the content the rule enrolls users in, to tell learners whether it is mandatory, required, recommended or optional.
Unenrollment behavior
Automatic unenrollment is off by default on every new rule. To turn it on, select Enable automatic unenrollment in the Unenrollment behavior section. With this option on, the rule automatically unenrolls users when they no longer meet its conditions, for example after they move to another branch or leave a manual group.
You can also select one or more enrollment status as exceptions: Not started, In progress and Completed. No exceptions are selected by default. Users whose enrollment status in the resource matches an exception are not unenrolled automatically, even when they no longer meet the rule's conditions.
For learning plans and certifications, use the Removal behavior setting to choose what to remove when users are unenrolled.
| Removal behavior | Result |
| Learning plans and certifications only | Users are unenrolled from the learning plan or certification. Their course enrollments stay active. |
| Learning plans and certifications with included courses | Users are unenrolled from the learning plan or certification and from its courses. Course enrollments shared with other active learning plans or certifications are kept. |
Courses that users were enrolled in independently, either manually or by another rule, are never affected by the removal behavior. The Enrollment Rules Builder also never unenrolls a user directly from a course while the user is still enrolled in a learning plan that contains it: the learning plan enrollment takes precedence.
When automatic unenrollment is on, you can also select Unenroll deactivated users. With this option on, users enrolled by the rule are unenrolled at the next run once their account is deactivated, whether or not they still meet the rule's conditions and regardless of the enrollment status exceptions.
If Unenroll deactivated users is on and Skip deactivated users is off, deactivated users who match the rule are enrolled and then unenrolled at the following run. In this case, the Enrollment behavior section shows the message This rule unenrolls deactivated users, reminding you to turn on Skip deactivated users if you do not want deactivated users to be enrolled at all.
Please note: The Enrollment Rules Builder only unenrolls users from enrollments that it created. Enrollments assigned manually or created through a purchase are never unenrolled automatically, even if the user also matches a rule with automatic unenrollment turned on.
How unenrollment works when more than one rule targets the same content
A user can match more than one rule that enrolls them in the same course or learning plan. The Enrollment Rules Builder creates only one enrollment and, at every run, checks whether the user should keep it:
- As long as the user matches at least one active rule that targets the content, they stay enrolled.
- When the user no longer matches any of these rules, the settings of the last rule they matched apply. If automatic unenrollment is off on that rule, the user stays enrolled. If it is on, the user is unenrolled, unless their enrollment status is one of that rule's enrollment status exceptions.
- If the user stops matching more than one rule in the same run, they stay enrolled if at least one of those rules has automatic unenrollment off or has an enrollment status exception that applies to them.
- If an enrollment status exception keeps the user enrolled and their status later changes to one that is not an exception, they are unenrolled at the next run.
This works the same way for courses and learning plans.
Example: Rule A and Rule B both enroll users in the same course. Rule A has automatic unenrollment on, while Rule B has it off. Neither rule has enrollment status exceptions. A user matches both rules and is enrolled. The following table shows what happens next.
| If the user... | Result |
| Stops matching Rule B, then stops matching Rule A in a later run | The user is unenrolled when they stop matching Rule A. Rule A was the last rule they matched, and it has automatic unenrollment on. |
| Stops matching Rule A, then stops matching Rule B in a later run | The user stays enrolled. Rule B was the last rule they matched, and it has automatic unenrollment off. |
| Stops matching both rules in the same run | The user stays enrolled, because Rule B has automatic unenrollment off. |
Please note: Turning off automatic unenrollment on one rule is not enough to keep a user enrolled permanently. If the user stops matching that rule but still matches another one, the other rule's settings apply from then on. If users should never be unenrolled automatically from a specific course or learning plan, turn off automatic unenrollment on every rule that targets it.
If a run cannot complete an action
If an unenrollment cannot be applied, the Enrollment Rules Builder tries again at the next run. If a rule cannot be evaluated, the Enrollment Rules Builder does not unenroll anyone based on incomplete results, and evaluates the rule again at the next run.
Activating, editing and deleting rules
The first time you activate a rule and the Enrollment Rules Builder runs, it evaluates the rule against every user and enrolls all users who currently match its conditions, including users who were previously unenrolled manually from the same content. A confirmation message reminds you of this before you activate the rule. This is different from the Enrollment rules app, where rules only apply to users added to a group or branch after the rule is activated.
If you edit a rule while a run is in progress, your changes apply from the following run.
Deleting a rule requires your confirmation and cannot be undone. Users already enrolled through the rule keep their enrollments, so deleting a rule does not undo what it has already done.
Please note: When you delete a rule, the enrollments it created become orphaned enrollments. See Deduplication and attribution.
Importing and exporting rules
You can export rules to a CSV file, including their conditions, sets of conditions, resources and unenrollment settings, and import them into another platform, for example to move rules from a sandbox to your production platform. Each rule in the file includes its status, so an imported rule is active or inactive according to the file. An imported active rule does not enroll or unenroll anyone until the next run.
If an imported rule has the same sets of conditions and the same resources as a rule that already exists, the import rejects it as a duplicate. Importing never deletes or overwrites an existing rule.
Scheduling and runs
The Enrollment Rules Builder processes all active rules once a day. At the start of each run, it takes a snapshot of all active rules and of the relevant user data, so any change you make during a run applies from the following run.
If a run does not complete, for example because of a system error, everything it has already applied stays in place and the activity log records the last rule it processed. The next run evaluates every rule again from the beginning and completes anything left over, so you do not need to fix anything manually.
Please note: If a rule is deactivated or deleted while a run is in progress, the run finishes using the snapshot it started with, and the change applies from the next run.
How the daily processing time is assigned
When you promote the Enrollment Rules Builder from preview mode to active, Docebo automatically assigns your platform a daily processing time. The time is based on your platform's time zone and is selected from an available slot in the overnight processing window. This spreads runs across platforms instead of having every platform process changes at the same time, which keeps the processing of automated enrollments and unenrollments reliable.
You do not need to do anything to set up the schedule.
Deduplication and attribution
Every enrollment created by the Enrollment Rules Builder is permanently marked with its source, so the platform can always tell it apart from enrollments created in any other way. The source is set when the enrollment is created and does not change in later runs, even if you edit the rule that created it.
Before creating an enrollment, the Enrollment Rules Builder checks whether the user already has an active enrollment in that content, from any source. If so, it skips the action instead of overwriting the existing enrollment or changing its source. Similarly, if the user has already completed the content, the Enrollment Rules Builder does not enroll them again. If more than one active rule would enroll the same user in the same content in the same run, only one enrollment is created: the rule that enrolls the user first is linked to the enrollment, and the other rules are skipped without creating duplicates.
If a rule is deleted, its enrollments are not deleted. They become orphaned enrollments: they stay active but are no longer managed, or automatically unenrolled, by any rule. If an enrollment matches more than one rule over time, it can become linked to the rule that most recently matched it.
Reviewing the activity log
The Activity log tab records what happened in every run from the last 60 days: every enrollment, unenrollment, skip and block, with the reason.
Each run has one of the following status.
| Run status | What it means |
| In progress | The run is currently processing rules. |
| Completed | The run finished with no errors or warnings. |
| Completed with warnings | The run finished, but at least one rule produced a skip, a block or another issue worth reviewing. |
| Failed | The run did not complete. The log records the last rule it processed. |
| Simulation | The run was a preview and did not apply any enrollment or unenrollment. |
Please note: Completed with warnings is a normal status and does not mean that something is broken. It means that at least one rule needs your attention, for example because a course reached its maximum enrollment quota. Failed is the status that means something went wrong.
Each log entry records the rule, the action, the resource, the user, the date and time and, for anything skipped or blocked, the reason. Reasons include a course that reached its maximum enrollment quota, an enrollment that already existed, a completion that already existed, a learning plan enrollment that prevented a direct course unenrollment, a bundle mismatch and a seat limit.
To export the log, select Export activity log and choose a date range. The export includes the rule ID, the action, the resource, the user, the date and time, the run status and, where relevant, the reason for a skip or block.
Auditing rule changes
The audit trail records every rule creation, update and deletion, with the same columns as every other audited action: date and time, operator ID and username, event name, target ID and name and IP address. To see the details of an entry, select the ellipsis icon on its row and then View log details.
These actions appear under a dedicated Enrollment Rules Builder event category in the audit trail filters, with three events: Rule Created, Rule Updated and Rule Deleted. This category is separate from the Enrollment rules category used by the Enrollment rules app, so when you filter the audit trail for Enrollment Rules Builder activity, select Enrollment Rules Builder rather than Enrollment rules.
Activating or deactivating a rule is recorded as a Rule Updated event.
See Audit trail events details for the complete list of audit trail events.
Related articles
Migrating from the Enrollment rules app to the Enrollment Rules Builder