Restricting Open edX registration by email domain

Limit Open edX account creation to approved email patterns for your university or company, and confirm how SSO sign-in and other account paths interact with that rule before launch.

On this page

Restricting Open edX registration by email domain: when your platform should accept only approved addresses

Open edX accepts all email addresses at registration by default, so a university or company that wants sign-ups limited to staff, students or partners has to configure that restriction deliberately. Open edX can be set to accept only addresses that match allowed email patterns, and this is the control that decides who may create an account on the platform. Teams usually need it when a course catalog or internal training site should not be open to anyone with an email address, when contracts limit access to named partner organizations, or when the institution wants its own domains to be the only route to a new account.

The control is a registration-only restriction. It checks the email address typed at sign-up and does nothing to accounts that already exist, to accounts created by administrators, or to learners who reach the platform through a third-party sign-in provider that creates accounts for them. Before rollout, the reader should confirm with the Open edX documentation for the release in use how the pattern setting is named and formatted, and should test it with addresses that should pass and addresses that should fail. Existing accounts outside the pattern need a separate decision, such as review, deactivation or a documented exception.

Teams also need to decide how the restriction interacts with single sign-on. If the platform creates accounts automatically when a learner signs in through an identity provider, the email pattern may not stop that account creation, so the reader should test each sign-in path separately and confirm what the identity provider is allowed to pass through. Wider access controls, such as who can author courses or which courses a learner can see, are handled by other settings and are not changed by the registration pattern. Ask the platform owner to write down which paths create accounts, which of them the pattern covers, and who approves exceptions, then review that record whenever the sign-in configuration changes. The Open edX documentation on allowed registration email patterns is the starting point for confirming the exact setting for the release in use.

Registration control options and when each fits

This table compares four ways to control who can create an Open edX account: open registration, email pattern restriction, SSO-only sign-in, and manual or invitation-based account creation. Read each row against your user population and ask what the option blocks and what it leaves open. The main takeaway is that email pattern restriction only governs the registration form, so it is rarely enough on its own when accounts also arrive through identity providers or staff tools.

OptionBest fitWhat it blocksWhat it leaves open
No restriction (default)Public catalogs and open courses where anyone should be able to sign upNothing at registration; all email addresses are accepted by defaultAny person with any email domain can create an account and enroll in open courses
Email pattern restriction at registrationA university or company that wants sign-up limited to its own domains or approved address patternsSelf-registration with email addresses outside the configured patternsAccounts created through SSO auto-registration, staff tools, or other paths that bypass the registration form
SSO-only sign-inWorkforce or campus audiences whose identity provider already governs who is a memberLocal passwords and self-registration for users outside the identity providerTrust in the identity provider's own membership rules, so its directory hygiene matters
Manual account creation or course-team invitationsSmall, closed cohorts such as paid training, partner staff or pilot groupsAnyone without an explicit account or invitationOperational load for administrators, and invitations can still be forwarded to outsiders unless tied to a verified address
Combined model (pattern restriction plus SSO and invitations)Institutions with several sign-in paths that each need a clear ruleMost unapproved self-registration and undocumented account creation routesRequires a written owner for each path and a periodic review of accounts that arrived by other routes

How the restriction interacts with SSO auto-registration

Direct registration is the path the restriction is designed for. When a learner creates an account with an email address and password on the registration page, the allowed email patterns are checked against the address entered. Addresses that do not match are refused at that point. The registration email patterns documentation states that the restriction applies only to registration by email, so it limits that one form and does not control sign-in overall.

  • Expected behavior: a matching address completes registration, and a non-matching address is refused with no account created.
  • Pattern matching: test uppercase addresses, plus-addressing, subdomains and look-alike domains, since the pattern rules decide whether each one passes.
  • Existing accounts: the restriction is expected to govern new registrations, so confirm how accounts created before the pattern was set are treated.
  • Related mail flows: confirm whether an address outside the pattern can still receive mail from password reset or other account flows.

Check each pattern against a staging list of approved and rejected addresses before the setting goes live.

Setting up email pattern restrictions in a Tutor-based deployment

This sequence turns an approved list of email domains from your registrar or HR owner into a tested registration restriction on a Tutor-based Open edX site, with the SSO paths checked and the change on record. The result is a documented, verified setting you can hand to security and compliance reviewers.

  1. Confirm approved domains and patterns with the owner

    Agree the exact list of allowed email domains and any pattern rules with the registrar, HR owner or partner-management contact who decides who may hold an account. Record which addresses are included, which are excluded (such as personal webmail), and who approves future changes. Done when the owner signs off on a written list that names each pattern and its intended population, so the configuration has a reference to match against.

  2. Check the running release and Tutor version

    Identify the Open edX release and the Tutor version your deployment runs, since the place where the setting is defined and how it is applied can depend on both. Read the current Tutor and release documentation for the registration email pattern option. Done when you have written down the release name, Tutor version and the documentation page you followed, and confirmed the option exists for that combination.

  3. Set the pattern in the documented configuration

    Apply the allowed email pattern in the configuration location the official Open edX documentation describes for your running release. Confirm the exact configuration key and where it lives in your Tutor setup before editing, because this location must be checked against current documentation rather than assumed. Keep the change in version-controlled configuration. Done when the setting is committed and the deployed configuration shows the intended pattern.

  4. Apply the change and redeploy

    Apply the configuration to the running environment using your standard Tutor workflow in a non-production environment first, then in production during an agreed change window. Confirm that the LMS picked up the new setting by reviewing the deployed configuration and the service status. Done when the change is live in both environments and the deployment log shows no configuration errors.

  5. Test registration with allowed and disallowed addresses

    Create test registrations using addresses that should succeed and addresses that should be refused, including near-miss domains such as lookalike spellings and subdomains that the pattern should or should not match. Record each attempt and the result. Done when every allowed address registers and every disallowed address is refused with the expected message, and any mismatch is logged for correction before sign-off.

  6. Test SSO sign-in paths

    Test each configured identity provider path, such as OAuth2, SAML or LTI sign-in, with accounts inside and outside the approved domains. Confirm whether auto-registration through SSO creates accounts that bypass the email pattern, and document the result for each path. Done when you know exactly which sign-in routes enforce the restriction and which do not, and any gap has a recorded owner and a decision.

  7. Record the change and its limits

    Write a change record that names the approved pattern list, the release and Tutor version, the configuration location, the test results and the SSO findings. State plainly that the restriction applies only to registration by email and does not limit other account activity. Done when the record is stored with your configuration documentation and the owner has accepted it, ready for security and compliance reviewers.

Only the email branch passes through the pattern check

The flow starts when an applicant opens the sign-up page and chooses email registration or a single sign-on button. Only the email branch passes through the allowed pattern check, which either creates the account or rejects the request. The SSO branch sends the applicant to the identity provider, which returns a signed assertion. The LMS then matches or creates the account according to how the identity provider is configured, and the email pattern check is not part of that step. Check the trust boundary: the LMS relies on the identity provider's assertion, so the identity provider's own sign-in rules decide who can reach that branch.

Only the email path runs the pattern check; SSO trusts the identity provider.

Security and operational risks of domain-based registration rules

An email domain rule decides who can type an address into the registration form, not who should hold an account for the life of a course or job. The cards below cover the gaps that appear after launch and the controls that close them, many of which sit outside the registration setting itself.

Lookalike and unowned domains

An allowed pattern is only as trustworthy as the domain behind it. If a partner, subsidiary or former vendor lets a domain lapse, someone else can register it and create accounts that pass the rule. Confirm who owns each approved domain, record the renewal owner, and check that patterns match the full domain and not a loose substring, so that a pattern for example.edu does not also accept example.edu.attacker.net.

Departed staff keeping accounts

The registration rule runs once, when the account is created. It does not remove accounts when people leave, so former employees and graduated students can keep working logins on an institution's platform. Add a periodic review of accounts against the current staff or enrollment roster, and where the organization uses single sign-on, connect deprovisioning in the identity provider to the Open edX account lifecycle.

Approved domains that change over time

Mergers, new campuses, rebranding and new contractor arrangements all change the list of approved domains. Each change needs an owner, an approval step and a record of what was added or removed. Without this, old patterns stay active long after the business relationship ends, and new patterns are added in a hurry without review. Keep the pattern list in version control so changes are visible.

Shared and forwarded addresses

A rule that accepts any address at an approved domain cannot tell whether one person or a group controls it. Shared mailboxes, distribution lists and forwarding aliases can create accounts that many people reach, and a forwarded address can outlive the person it was issued to. Ask whether the organization issues role-based or group addresses, decide whether they may hold learner accounts, and confirm that account ownership can be traced to a named person.

Using the rule as course access control

The restriction only applies at the moment of registration. It does not control who can enroll in a course, view course content after sign-in, or receive certificates. An approved domain does not guarantee that a learner belongs to the course audience. For content that must be limited, use course-level enrollment rules, cohort or group settings and access controls within the platform, and test them with accounts from outside the approved domains.

Logging and auditing rejected attempts

Rejected registration attempts are the first signal of a misconfigured rule or someone probing the form, but a restriction alone does not produce a review trail. Confirm with your Open edX operations team what the platform records about blocked sign-ups, where those logs are kept, how long they are retained, and who reviews them. Also record each change to the pattern list so that auditors can see when a rule was added, by whom and why.

Questions teams ask before restricting Open edX registration

How much effort does restricting registration by email domain take?

The setting itself is a configuration change, so the effort sits in the surrounding work: agreeing the domain list, deciding how exceptions are handled, and testing registration paths. The main drivers are the number of allowed domains and patterns, whether learners arrive through SSO or direct sign-up, and how many environments need verification before production. A single institutional domain with direct registration is a small job. Several subsidiaries, partner domains and external contractors, each with their own sign-in route, add review and testing time. Ask any provider to break the quote into domain analysis, configuration, and testing so you can see which driver is adding cost.

Can our own team restrict Open edX registration without a partner?

Often yes, if your team already runs Tutor-based deployments and has someone comfortable editing platform configuration and restarting services. The configuration is documented in the Open edX docs, so the technical step is not the hard part. What a partner usually adds is a second pair of eyes on the pattern syntax, a structured test plan covering registration, SSO and edge cases, and documentation for the identity and compliance owners. Decide based on who will own the change after go-live and whether you have a test environment that mirrors production sign-in behavior.

What does our team need to provide before the work starts?

Three inputs decide most of the work. First, the approved domain list, including subdomains and any exceptions you accept, owned by someone who can sign off on it. Second, a named identity owner who knows how SSO providers assert email addresses and who can confirm how external identities should be treated. Third, test accounts: one for each allowed domain, one for a disallowed domain, and accounts for each SSO provider in use. Without these, testing stalls and the team ends up guessing which patterns should match.

How long does testing take in different environments?

Testing length depends on the environment rather than the configuration change. A single staging instance with direct registration needs a short check of allowed and blocked addresses. A deployment with several SSO providers, a multi-site setup or a separate pre-production tier needs a test pass on each, since each can handle email claims differently. Plan for re-testing after every platform upgrade or Tutor update that touches authentication. Confirm with your provider how many environments are in scope and what the test evidence will look like before accepting a timeline.

Does restricting registration block users who sign in through SSO?

It depends on how your SSO is configured, so do not assume either way. The Open edX documentation describes the restriction as applying to registration by email, and by default all addresses are accepted. Where a third-party identity provider creates accounts automatically, you need to test whether the email pattern is evaluated on that path. Some teams want SSO users to bypass the restriction because the identity provider already controls who may sign in. Others want the same rule everywhere. Decide this policy first, then verify it with a test account for each provider. Confirm the exact behavior against the version you run.

Does this setting stop unauthorized people from enrolling in courses?

No. The restriction only governs who can create an account by email during registration. It does not control enrollment in a course, access to a course that is already public, invitations sent by course staff, or accounts created by administrators through other tools. Someone with an allowed address can still enroll in any course they can reach, and someone with a disallowed address may reach course content through a public outline or an account created another way. Course access needs its own controls, such as enrollment rules, course visibility and role assignments, reviewed separately.

Should we treat this as a compliance control?

Treat it as one part of an access control design, not as evidence on its own. It can support a documented rule that only approved domains create accounts, and it gives your compliance team something concrete to review. DeployOpen prepares systems, configuration and evidence for compliance assessments, but independent auditors and certification bodies issue any assessment outcome. Ask your auditor which records they expect, such as the configured patterns, change history and test results, and plan to keep them with the deployment.

What to confirm with the vendor and your identity team before launch

Before you turn on email domain restrictions, confirm with your identity team and against the release documentation for your installed Open edX version which registration paths actually exist on your platform. The restriction applies to registration by email, so every path that creates an account without going through that check needs to be listed and assessed. Ask your identity team to show you, for each path (standard registration, SSO auto-registration through a configured identity provider, and any account creation done by administrators or bulk import), whether the account is created with an email address and whether the allowed pattern check applies. Then confirm the exact behavior against the official allowed registration email patterns configuration page, because the page is the source for what is and is not restricted in your release.

Next, confirm how your identity provider passes the email attribute. Open edX third-party authentication supports OAuth2 providers, SAML 2.0, Shibboleth and LTI, and each handles the email claim or attribute differently. Ask the identity team which attribute carries the address, whether it is verified by the provider, whether users can change it after sign-in, and whether aliases or plus-addressed emails can appear. A pattern that looks correct on paper can be bypassed or can block legitimate users if the identity provider sends a different address form than your users expect. Test with real accounts from each affiliated domain and with at least one account that should be refused.

Finally, decide how exceptions will be handled before launch rather than after the first complaint. Partners, visiting faculty, contractors and guest learners often have addresses outside the approved pattern. Decide who approves an exception, how it is recorded, whether the account is created by an administrator or through a separate invitation path, and when it expires. Confirm with the vendor or your Tutor-based deployment team how such accounts are created in your release, since an administrator-created account may bypass or follow a different rule. Document the answers so the security and compliance teams can review them with the rest of your access controls.

How DeployOpen scopes and delivers registration controls for Open edX

DeployOpen treats email-domain registration limits as a scoped piece of identity work, not a setting to flip at the end. We confirm which domains and sign-in paths apply, build the pattern configuration into your Open edX installation in your infrastructure, test it against real registration and SSO flows, and document what it does and does not restrict for your team.

How we scope

  • We confirm which email domains and subdomains your university or company accepts for new accounts.
  • We map every sign-in path, including SSO auto-registration, so the restriction is tested where accounts are actually created.
  • The written scope states what is restricted, what stays open, and which existing accounts are excluded from review.

How we build

  • We set the allowed registration email patterns in your Open edX configuration in the infrastructure you control.
  • We align the pattern rules with any identity provider attribute mapping so SSO users are not blocked or admitted by accident.
  • We test rejected, accepted and edge-case addresses across the registration form, API and SSO paths before handover.

How we hand over

  • You receive the configuration, a test matrix of sample addresses, and the expected result for each path.
  • The handover document lists the controls that remain outside this restriction, such as invitations, admin-created accounts and course enrollment.
  • We walk your identity and platform teams through change steps for adding or removing an allowed domain later.

How we support

  • Ongoing support and continuous testing are available as a retainer, covering changes to domains and identity providers.
  • We can retest registration behavior after Open edX upgrades or identity provider changes, as agreed in the written scope.
  • Questions about what the restriction does not cover can be answered with a documented scope review before any change is made.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.