Student Information System (SIS) Imports are a great way to manually import bulk data (or changes) into the Canvas system. This lesson will provide the basic lessons on how to use the Canvas API and the programming language of your choice to set up an automated system to manage your SIS import workflow.
Several programming languages can be used to build an automated integration tool with Canvas. If your preferred programming language can make Secure Socket Layer (SSL) web calls (HTTPS) to an external server and has the ability to post files, you can apply the steps in this lesson to the programming language of your choice (or just install cURL and write a batch file). This lesson provides a simple approach to setting up a basic automated import system. However, you may want to develop a more complex system based on your skills and the abilities of your specific SIS integration.
Testing Data Integrations
To avoid affecting data in your production environment, you may want to set up your SIS integration in your test environment for accurate testing. Every three weeks, the day after a new Canvas production release, your production environment will create an updated copy for your test environment so you can test with up-to-date data. Once you have confirmed your data works correctly, you can re-apply your SIS integration to your production environment.
Alternatively, you can create your changes in your production environment, then wait for the next refresh before you begin practicing in your test environment.
Click the Admin link , then click the name of the account .
In Account Navigation, click the Permissions link.
In the Account Roles tab, create an account-level user role and allow the user to manage SIS data. If you do not want to create a new user role, you can use an existing user role and modify the permissions.
You'll need to manually add a new user to manage the SIS data. You can use an existing user imported via SIS, but manually creating a new user is beneficial for security purposes. This new user will end up with only one permission, but that one permission grants the ability to create, modify, and delete many object types in Canvas.
To enable SIS permissions, add your admin as an administrative user to your account. Set the user with the user role where you enabled the SIS data permission.
Log out of Canvas and then log back in as the new user. In User Settings under Approved Integrations, add a new access token. Leave the expiration date blank unless you have a reason to specify a date. Learn how to obtain an API access token.
Note: Be sure to save this API access token in a safe place. An API access token is effectively the same as a username and password, so treat it with similar security. Remember that the token created in your test environment will be replaced by the token created in your production environment during the next test environment refresh period.
curl -H "Authorization: Bearer <api_token>" 'https://<canvas_fqdn>/api/v1/accounts/self/sis_imports/<import_id>'
Practice importing data via the API. One API method is using cURL, a command line tool for transferring data that is supported on all operating systems (Windows, Linux, and OSX). The API can show you how to practice importing a test file and checking the status of a previous import.
Learn more about using the API to import data into Canvas.
Using your preferred programming language, create an SIS script. An SIS script automatically synchronizes the users in your institution with your Canvas account. View the SIS script flowchart.
The import script can be as simple or complex as your institution requires. Additionally, a variety of programming languages can be used to write your import script/program.
Learn more about creating a Canvas SIS script.
Export your SIS data in a Canvas CSV file format. Place the file(s ) into a directory or folder that only contains CSV files ready to be imported. Depending on your SIS, this step may be automated. For more information on integration, please contact your Canvas Customer Success Manager.
Due to extensive variations among Student Information Systems (SIS), this lesson cannot document one all-inclusive method for exporting data. However, here are a few possible data access methods that may be available to you:
Once you know how to access your SIS data, a script/program could be written and used to manipulate and filter the data to match the format required for CSV SIS imports. In some cases, you may have to manually perform this step. You will need to work with your SIS administrative team or vendor to work out the best way to export data.
Note: While working with your SIS team, be sure to provide them with the Canvas CSV file format documentation, which may reduce the complexity of or eliminate the need for a script/program to prepare the data before the import.