MetorialDocs

Set up D2L Brightspace in Metorial for Claude, ChatGPT and Cursor

Share D2L Brightspace with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or bearer token sign-in, 54 tools (28 read-only).

To give your team D2L Brightspace in Claude, ChatGPT, Cursor and other AI clients, an admin shares the D2L Brightspace integration in a Metorial portal, and each person signs in to D2L Brightspace with their own account. Agents can manage Brightspace users, courses, enrollments, grades, assignment folders, content modules, announcements, discussions, calendar events, groups, sections, and awards. The integration has 54 tools, 28 read-only, 19 write and 7 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares D2L Brightspace in a portal and how each person connects
  • The 47 OAuth scopes D2L Brightspace can request, and what each one allows
  • How to keep the 28 read-only tools and reject the other 26

Before you start

Sign-in methods

MethodTypeWhat a person provides
Bearer TokenAPI tokentoken
Brightspace OAuth (default)OAuthSigns in to D2L Brightspace after entering instanceUrl

The portal and metorial setup use Brightspace OAuth unless someone picks another method.

Bearer Token

To connect, a person enters:

  • token: Brightspace OAuth bearer token or API access token

Brightspace OAuth

Before the sign-in, setup asks for:

  • instanceUrl (optional): Your Brightspace instance URL (e.g. https://myschool.brightspace.com). Used only for token refresh and profile retrieval.

People sign in to D2L Brightspace and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
core:*:*Core Full AccessFull access to core APIs (fallback for unmapped actions)
users:userdata:readUsers ReadRead user data
users:userdata:createUsers CreateCreate user accounts
users:userdata:updateUsers UpdateUpdate user accounts
users:userdata:deleteUsers DeleteDelete user accounts
users:profile:readProfile ReadRead user profiles
users:own_profile:readOwn ProfileRead own profile
enrollment:orgunit:readEnrollment ReadRead enrollment data
enrollment:orgunit:createEnrollment CreateCreate enrollments
enrollment:orgunit:deleteEnrollment DeleteDelete enrollments
enrollment:own_enrollment:readOwn EnrollmentRead own enrollment data
orgunits:course:readCourse ReadRead course offerings
orgunits:course:createCourse CreateCreate course offerings
orgunits:course:updateCourse UpdateUpdate course offerings
orgunits:course:deleteCourse DeleteDelete course offerings
orgunits:coursetemplate:readTemplate ReadRead course templates
orgunits:coursetemplate:createTemplate CreateCreate course templates
content:modules:readContent ReadRead course content modules
content:modules:manageContent ManageManage course content modules
content:topics:readTopics ReadRead course content topics
content:topics:manageTopics ManageManage course content topics
grades:gradevalues:readGrades ReadRead grade data
grades:gradevalues:writeGrades WriteWrite grade data
grades:gradeobjects:readGrade Items ReadRead grade objects
grades:gradeobjects:writeGrade Items WriteWrite grade objects
dropbox:folders:readDropbox ReadRead assignment dropbox folders
dropbox:folders:writeDropbox WriteWrite assignment dropbox folders
dropbox:folders:deleteDropbox DeleteDelete assignment dropbox folders
quizzes:quizzes:readQuizzes ReadRead quizzes
quizzes:quizzes:writeQuizzes WriteManage quizzes
discussions:forums:readDiscussions ReadRead discussion forums
discussions:forums:manageDiscussions ManageManage discussion forums
discussions:posts:readPosts ReadRead discussion posts
discussions:posts:managePosts ManageManage discussion posts
news:newsitems:readNews ReadRead news/announcements
news:newsitems:manageNews ManageManage news/announcements
calendar:events:readCalendar ReadRead calendar events
calendar:events:writeCalendar WriteManage calendar events
awards:awards:readAwards ReadRead awards and badges
awards:awards:manageAwards ManageManage awards and badges
groups:groups:readGroups ReadRead groups and sections
groups:groups:manageGroups ManageManage groups and sections
orgunits:orgunit:readOrgUnit ReadRead org unit structure
orgunits:orgunit:manageOrgUnit ManageManage org unit structure
enrollment:completion:readCompletion ReadRead enrollment completion data
enrollment:completion:updateCompletion UpdateUpdate enrollment completion
users:password:writePassword WriteManage user passwords

Setup settings

Whichever method you pick, setup also asks for:

  • instanceUrl: Your Brightspace instance URL (e.g. https://myschool.brightspace.com)
  • lpVersion (optional): Learning Platform API version (default: 1.49)
  • leVersion (optional): Learning Environment API version (default: 1.82)
  • basVersion (optional): Badge and Award System API version (default: 2.5)

Use your own D2L Brightspace OAuth app

With your own OAuth app, people see your company's name on the D2L Brightspace consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose D2L Brightspace and copy the Redirect URI.

Register the app with D2L Brightspace

Create an OAuth app or client in D2L Brightspace and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the D2L Brightspace integration.

Admin: share D2L Brightspace in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose D2L Brightspace. Under Auth Method, keep Brightspace OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to D2L Brightspace as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from D2L Brightspace.

Choose who gets it

Add the access groups that should see D2L Brightspace. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user D2L Brightspace integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "d2l brightspace"

Employee: connect D2L Brightspace

In the portal

Open D2L Brightspace in the catalog

Sign in to your portal and open D2L Brightspace. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A D2L Brightspace sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "d2l brightspace"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Brightspace OAuth. To connect with Bearer Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your D2L Brightspace connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "d2l brightspace"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 28 read-only tools, such as get_quiz and get_user, and lose the 19 write tools, such as create_user or enroll_user, and the 7 destructive tools, such as revoke_award or delete_course.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "d2l brightspace"
metorial tools <integration-id>
metorial call <integration-id> list_roles -d '{}'

metorial tools lists the 54 tools, minus any you rejected. list_roles takes no input. It lists all available roles in the Brightspace instance.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (28)

Show all 28 read-only tools
  • get_assignment_submissions: Retrieve submissions for an assignment. Needs orgUnitId and folderId.
  • get_classlist: Retrieve the classlist (enrolled users) for a course. Needs orgUnitId.
  • list_grade_items: List all grade objects (items) in a course's gradebook, including their type, max points, and weight. Needs orgUnitId.
  • get_grade_value: Retrieve a specific student's grade for a grade item, or get all students' grades for a grade item. Needs orgUnitId and gradeObjectId.
  • get_user: Retrieve a Brightspace user's details by their user ID, or look up users by username, email, or org-defined ID.
  • get_course: Retrieve details for a Brightspace course offering by its org unit ID, including name, code, dates, active status, and course template information. Needs orgUnitId.
  • list_assignments: List all assignment (dropbox) folders in a course. Needs orgUnitId.
  • get_assignment: Get detailed information about a specific assignment folder, including its instructions, due date, assessment settings, and availability. Needs orgUnitId and folderId.
  • list_enrollments: List enrollments for a specific user or org unit.
  • list_content_modules: List root-level content modules for a course, or get the structure (children) of a specific module. Needs orgUnitId.
  • get_final_grades: Retrieve final calculated grades for all students in a course. Needs orgUnitId.
  • list_users: List and search Brightspace users.
  • list_groups_sections: List group categories, groups within a category, or sections within a course. Needs orgUnitId.
  • list_awards: List awards (badges and certificates) available in the organization, or list awards issued to a specific user.
  • list_quizzes: List all quizzes in a course. Needs orgUnitId.
  • list_calendar_events: List calendar events for a course or org unit. Needs orgUnitId.
  • list_discussion_forums: List all discussion forums in a course, or get topics within a specific forum. Needs orgUnitId.
  • list_org_units: Search and list organizational units (courses, departments, semesters, etc.).
  • list_roles: List all available roles in the Brightspace instance.
  • list_announcements: List all news items (announcements) in a course or org unit. Needs orgUnitId.
  • get_quiz: Get detailed information about a specific quiz, including its configuration, questions, and attempts. Needs orgUnitId and quizId.
  • list_discussion_posts: List posts/threads within a discussion topic. Needs orgUnitId, forumId and topicId.
  • list_org_unit_types: Discover organizational unit type IDs and names to filter list_org_units, such as courses, semesters, and departments.
  • list_award_associations: Discover awards associated with an org unit before issue_award.
  • get_announcement: Retrieve an announcement by an ID from list_announcements, including its full body and publication settings.
  • get_calendar_event: Retrieve a calendar event by an ID from list_calendar_events, including its recurrence, visibility, location, and associated activity.
  • get_org_unit: Retrieve an organizational unit by an ID from list_org_units or list_enrollments, including its type and content path.
  • get_content_topic: Retrieve a course content topic, its type, URL, dates, and visibility.

Write tools (19)

  • update_course: Update an existing course offering's name, code, dates, active status, description, or self-registration setting. Needs orgUnitId.
  • update_content_module: Update an existing content module's title, description, visibility, or dates. Needs orgUnitId and moduleId.
  • create_assignment: Create a new assignment (dropbox folder) in a course with instructions, due date, and submission settings. Needs orgUnitId and name.
  • update_user: Update an existing Brightspace user's details such as name, email, username, activation status, or org-defined ID. Needs userId.
  • set_grade_value: Set or update a student's grade for a specific grade item. Needs orgUnitId, gradeObjectId, userId and pointsNumerator.
  • create_content_module: Create a new content module in a course. Needs orgUnitId and title.
  • create_course: Create a new course offering in Brightspace. Needs name, code and courseTemplateId.
  • create_user: Create a new user account in Brightspace. Needs firstName, lastName, userName and roleId.
  • enroll_user: Enroll a user in a course or org unit with a specific role. Needs orgUnitId, userId and roleId.
  • update_announcement: Update an existing news item (announcement) in a course or org unit. Needs orgUnitId and newsItemId.
  • update_calendar_event: Update an existing calendar event's title, description, or dates. Needs orgUnitId and calendarEventId.
  • create_discussion_topic: Create a new discussion topic within an existing forum. Needs orgUnitId, forumId and name.
  • manage_group_enrollment: Add or remove a user from a group within a course. Needs orgUnitId, groupCategoryId, groupId, userId and action.
  • create_discussion_forum: Create a new discussion forum in a course with a name, description, and optional visibility/locking settings. Needs orgUnitId and name.
  • create_discussion_post: Create a new post or reply in a discussion topic. Needs orgUnitId, forumId, topicId, subject and message.
  • issue_award: Issue a badge or certificate to a user within an org unit. Needs orgUnitId, awardId and userId.
  • create_announcement: Create a new news item (announcement) in a course or org unit. Needs orgUnitId, title and body.
  • create_calendar_event: Create a new calendar event for a course or org unit. Needs orgUnitId, title, startDateTime and endDateTime.
  • update_assignment: Update an assignment name, instructions, visibility, or dates while preserving other folder settings.

Destructive tools (7)

  • delete_course: Permanently delete a course offering from Brightspace by its org unit ID. Needs orgUnitId.
  • unenroll_user: Remove a user's enrollment from a course or org unit. Needs orgUnitId and userId.
  • delete_content_module: Delete a content module from a course. Needs orgUnitId and moduleId.
  • delete_calendar_event: Delete a calendar event from a course or org unit. Needs orgUnitId and calendarEventId.
  • revoke_award: Revoke a previously issued award (badge or certificate) by its issued award ID. Needs issuedId.
  • delete_announcement: Delete a news item (announcement) from a course or org unit. Needs orgUnitId and newsItemId.
  • delete_assignment: Delete an assignment folder and its associated submissions.

Triggers

D2L Brightspace has 4 triggers, which fire on events in D2L Brightspace:

  • grade_changes: Triggers when grade values are updated for students in a course.
  • inbound_webhook
  • announcement_changes: Triggers when announcements (news items) are created or updated in a specific course or org unit.
  • enrollment_changes: Triggers when users are enrolled in or unenrolled from a specific course/org unit.

Next steps