For the complete documentation index, see llms.txt. This page is also available as Markdown.

Canvas Career User Context

Consolidated API for retrieving all user context data needed by Journey in a single request. Replaces separate calls to permissions, experience_summary, enrollments, and admin roles endpoints.

A CareerUserContext object looks like:

{
  // Account permission checks for the authenticated user.
  "permissions": null,
  // Career experience summary including current app and available apps.
  "experience": null,
  // Distinct enrollment types for the user (active, invited, and pending).
  "enrollment_types": null,
  // Admin roles on the domain root account.
  "admin_roles": null,
  // Whether the user is a site admin.
  "is_site_admin": null,
  // Whether the user admins a subaccount under the domain root. When account_id
  // is provided, true only if the user can admin that specific account.
  "is_subaccount_admin": null,
  // Whether the user is an admin on the domain root account or a site admin.
  "is_root_account_admin": null,
  // Whether the resolved account (account_id, or the domain root when omitted) is
  // itself a root account rather than a sub-account.
  "is_root_account": null
}

Get career user context

CareerUserContextController#show

GET /api/v1/career/user_context

Scope: url:GET|/api/v1/career/user_context

Returns consolidated user context data for Journey, combining account permissions, career experience info, enrollment types, admin roles, and site admin status in a single response.

Request Parameters:

Parameter
Type
Description

account_id

string

Canvas account ID for permission and subaccount admin checks. Defaults to the domain root account ("self"). Other fields (experience, enrollment_types, admin_roles, is_site_admin) always resolve against the domain root.

Example Request:

Example Response:

Returns a CareerUserContext object.


This documentation is generated directly from the Canvas LMS source code, available on Github.

Last updated

Was this helpful?