🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 28, 2026

How to Enrol Students into Canvas LMS Courses from Gravity Forms

GravityExtra
How to Enrol Students into Canvas LMS Courses from Gravity Forms

Schools, universities and training teams collect sign-ups through WordPress all the time: a course registration page, a waitlist, an application, a paid enrollment, a staff training request. The problem is what happens next. Someone copies the name and email out of the form, opens Canvas, finds or creates the user, opens the course and adds them. It is slow, it is easy to get wrong, and it means a student who signed up at midnight is not actually in the course until someone processes the list the next morning. The Gravity Forms Canvas LMS Premium Add-on removes that step entirely: when a form is submitted, it enrols the student into the Canvas course for you, in seconds, with no retyping.

This post explains how the integration works, what you can map, how it avoids duplicate users and enrollments, and how to set it up. Canvas LMS, from Instructure, is one of the most widely used learning management systems, and its REST API is well suited to exactly this kind of automation. The add-on uses that API with your own personal access token, so your enrollments go straight into your own Canvas.

From a form submission to a Canvas enrollment

When a visitor sends a connected form, the add-on does three things. First it searches your Canvas account for a user with the email address from the form. Canvas account search is a fuzzy match, so the add-on compares the email exactly and never uses a near miss — one person is never confused with another. Second, if no user has that email and the feed allows it, the add-on creates the Canvas user with a login (a pseudonym) built from the email, and an optional name from the form. Third, it enrols that user into the course you chose, as a student, teacher, TA, observer or designer, with the enrollment set active straight away.

All of this happens in the background. The visitor sees your normal confirmation message and never waits on Canvas. If anything goes wrong, the submission is still saved and the error is written as a note on the entry, so a problem with Canvas never costs you a lead or a registration.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-settings.png
The Canvas LMS settings: address, access token, account id and the Test connection result.

What you can map on a feed

A feed is where you decide which submissions enrol someone and how. The student email is a merge tag of your email field, which is all the add-on needs to find or create the right user. The course id is the number from the course address in Canvas; put it behind a merge tag such as a course drop-down and one form can route people into different courses. You choose the enrollment type, and you can supply a numeric custom role id for an account-level custom role. A notify switch decides whether Canvas emails the student about the enrollment, and a create-user switch decides whether a brand new person gets a Canvas account or whether the feed only enrols people who already exist. Conditional logic lets a feed run only when the entry matches, so a paid-only course enrols just the entries where the order is complete.

Because a form can carry several feeds, one registration can enrol a student into an orientation course as a student and, under a condition, add them to a cohort course as well. Each feed keeps its own course, type and role.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-feed.png
The feed: student email and name, create-user, course id, enrollment type, custom role and condition.

Retries that never double-enrol

The hardest part of any integration is what happens when the network drops after the request is sent but before the reply comes back. A naive tool enrols the student again on the retry and you end up with duplicates. This add-on marks each attempt, and on a retry or a manual Resend it lists the course enrollments of that user and reuses the one it already made. If a user was created a moment earlier by another request and Canvas answers that the login is already in use, the add-on finds that user and reuses it instead of failing. A feed that is already running for an entry is never processed twice. The outcome is reliable: one Canvas user and one enrollment per entry, no matter how many times the feed runs.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-form.png
A front-end enrollment form; the visitor sees only the confirmation after sending.

Security and privacy

Your Canvas access token is sensitive, so the add-on treats it that way. It is encrypted at rest with AES-256-GCM using a key derived from your WordPress salts, so a copied database alone cannot read it. It is shown as a password field, never displayed again and never written to a log or an entry note — even inside an error message the token is stripped out. For stricter setups you can define the token as a constant in your wp-config.php and keep it out of the database entirely. Every request goes only to the Canvas address you set: the host is locked, private and local addresses are refused by default, redirects to other hosts are never followed, and TLS verification is always on. The only data sent to Canvas is the email, the mapped name and the course and role — exactly what Canvas needs to enrol the student, and nothing else.

https://gravityextra.com/wp-content/uploads/2026/10/gfcv-entry-scaled.png
The entry screen: the answers and the Canvas note with the user, enrollment and course link.

Setting it up

Setup takes a few minutes. In Canvas, open your Account settings, go to Approved Integrations and create a New Access Token. In WordPress, open Forms, then Settings, then Canvas LMS, activate your license key, and enter your Canvas address, the token and the account id. The Test connection button calls the Canvas “who am I” endpoint and shows the token owner without creating anything. Then add a Canvas LMS feed to a form, map the email field and the course id, and send a test entry. The full walkthrough, with every option explained, is in the Canvas LMS setup guide.

Frequently asked questions

How do I generate a Canvas access token?

Open the Account menu in Canvas, choose Settings, scroll to Approved Integrations and click New Access Token. Give it a purpose, optionally set an expiry, and click Generate Token. Copy the value immediately, because Canvas shows the full token only once. Any user can create a token; it carries the permissions of that account.

Where do I find the course id and account id?

The course id is the number in the course address, for example the 1234 in /courses/1234. The account id is usually self, which means the account your token belongs to; use a numeric account id only when you create and search users in a specific sub-account. Enrolling always uses the course id on the feed, so the account id matters only for finding and creating users.

Should the feed create users, or only enrol existing ones?

It depends on your token and your audience. If you register brand new people, turn on “Create the Canvas user” and use a token from an account administrator, which may both create users and enrol them. If you only enrol people who already have a Canvas account — for example students you teach — turn the switch off and a teacher token for that course is enough. With creation off, a missing user leaves a clear note and nothing is created.

What enrollment types are supported?

Student, teacher, TA, observer and designer, which are the standard Canvas base roles. If your Canvas has custom account roles, enter the numeric role id in the custom role field and the add-on enrols with that role instead.

Will the student receive an email from Canvas?

Only if you turn on the Notify option, which asks Canvas to email the student about the enrollment. Otherwise the enrollment is silent, and you can send your own branded welcome email with a Gravity Forms notification on the “student enrolled” event, using the enrollment and course merge tags the add-on provides.

Does it work with a self-hosted Canvas?

Yes. It works with Canvas hosted on Instructure and with a self-hosted Canvas on your own server, including one on a sub-path or a custom port. For a Canvas inside a private network you allow that one host with a filter; by default private addresses are refused so the token is never sent somewhere unexpected.

Put your sign-ups straight into Canvas

If your courses live in Canvas and your sign-ups live in Gravity Forms, closing the gap by hand is a daily chore that also delays access for the people who just registered. Let the form do it. Find out more, see the pricing and get the add-on on the Gravity Forms Canvas LMS Premium Add-on page.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr