Skip to main content

Roster exchange (OneRoster 1.2)

OneRoster is the 1EdTech standard that describes who is who in an organization: organizations themselves, academic sessions and grading periods, courses, classes and groups, learners, instructors, guardians and their enrolments — and, beyond the directory, line items and grades, and the learning resources made available to a class.

Where LTI 1.3 launches an external tool from the platform, OneRoster feeds that tool with data. A publisher, an LMS or a student information system no longer needs a hand-made file import at the start of every term.

The oneroster module works in both directions:

  • as a provider — a third-party tool reads the platform directory, the grades held by the grade book application and the resources published in the resource centre, and may post its own line items and results;
  • as a consumer — a OneRoster CSV archive, or a remote OneRoster REST provider, feeds the directory of one organization through the usual provisioning pipeline, exactly like a CSV import run from the administration console.

Supported specifications​

SpecificationStatus in Open ENT
Rostering Service 1.2, REST/JSON binding (41 GET routes)Implemented, read-only
Gradebook Service 1.2, REST/JSON binding (35 routes)Implemented, read and write
Resources Service 1.2, REST/JSON binding (5 routes)Implemented, read-only
CSV Binding 1.2.1Bulk export; import of 1.2 and 1.1 archives
OAuth 2.0 client credentials (client_secret_basic, client_secret_post), 1.2 scopesImplemented
limit/offset pagination, X-Total-Count and Link headers; filter, sort/orderBy, fieldsImplemented
imsx_StatusInfo errors (imsx_codeMajor, imsx_CodeMinor)Implemented

These statuses are self-assessed against the published specifications. Open ENT has not been through the 1EdTech conformance certification process, which is reserved for members of the consortium.

Endpoints​

The three services are served under the prefixes mandated by the standard; the token endpoint and the administration routes live under the platform's own /oneroster prefix.

PrefixContents
/ims/oneroster/rostering/v1p2organizations, academic sessions, courses, classes, users, enrolments, demographics
/ims/oneroster/gradebook/v1p2line items, results, categories, score scales, assessments
/ims/oneroster/resources/v1p2resources and how they are attached to classes and users
/oneroster/oauth/tokenaccess token issuance
/oneroster/adminclients, export and import (see below)

Both families of prefixes must be routed to the module's port (8171).

Authentication​

  1. A platform administrator registers a client (POST /oneroster/admin/clients): a name, the organizations it may see, the scopes it may request, and optionally the instructor who owns the line items it posts by default. The secret is shown once; only its SHA-256 digest is kept.

  2. The tool asks for a token:

    POST /oneroster/oauth/token
    Authorization: Basic base64(client_id:client_secret)
    Content-Type: application/x-www-form-urlencoded

    grant_type=client_credentials&scope=https://purl.imsglobal.org/spec/or/v1p2/scope/roster.readonly

    Without a scope parameter the token carries every scope the client is allowed.

  3. The tool then calls the API with Authorization: Bearer <token>. The token is a JWT signed with RS256 by the module. The client must still be active on every call: a scope revoked after the token was issued stops being accepted immediately.

Scope (https://purl.imsglobal.org/spec/or/v1p2/scope/…)Grants
roster-core.readonlyRostering collections and plain reads (demographics excluded)
roster.readonlythe whole Rostering service, nested routes included (demographics excluded)
roster-demographics.readonly/demographics (date of birth)
gradebook-core.readonly, gradebook.readonlyreading the Gradebook service
gradebook.createput, gradebook.createpost, gradebook.deletewriting to the Gradebook service
assessment.readonly, assessment.createput, assessment.deleteassessmentLineItems and assessmentResults
resource-core.readonly, resource.readonlythe Resources service

A client only ever sees the organizations in its own scope: anything outside it answers 404, including through a nested route.

What the tool reads​

OneRosterOpen ENT
org schoolorganization (its identifier is the national organization code)
org districtthe parent body the organization reports to (district, local authority…)
academicSession schoolYearthe school-year period held by the school-life application, otherwise the span of the known periods, otherwise September 1 – August 31
term / gradingPeriodthe organization's terms and semesters
coursea subject taught in the organization; a homeroom course carries the classes themselves
class homerooma class
class scheduledone subject taught to one class or group
usera member: learner → student, instructor → teacher, guardian → parent, staff → aide (organization administrator → siteAdministrator)
user.agentsguardian ↔ learner relationships
user.grades, class.gradesthe local grade level, translated into a CEDS code (KG, 01…12)
enrolmentclass or group membership; primary marks the lead instructor of a class
demographicsdate of birth only
tobedeleted statusa member who has left the directory
lineItem, result, categoryassignments, grades and comments, and assessment types, held by the grade book application
resourcea resource-centre bookmark, attached to the classes and members it is shared with

Guests are not exposed and phone numbers never are. School-life, grade book and resource-centre data are read only when those applications are installed; otherwise the matching collections come back empty. Date of birth requires its own scope.

What the tool may write​

The Gradebook service is the only one open for writing.

  • PUT /lineItems/{sourcedId} creates an assignment in the grade book application. The class must be a scheduled class; the owner is an instructor of that class, or else the client's default instructor. The grading period is the one named, or the one containing the assign date; resultValueMax sets the maximum score (20 by default).
  • PUT /results/{sourcedId} records the grade of a learner in that class (0 ≤ score ≤ maximum) and, when comment is supplied, the written feedback. A scoreStatus of exempt or not submitted with no score removes the grade. The write is refused (422) once the grading period is closed for entry.
  • Bulk creation routes (POST /classes/{id}/lineItems, /lineItems/{id}/results…) answer with sourcedIdPairs.
  • A client may only change or delete what it created itself; assignments entered in the platform are read-only to it (403).
  • Score scales, client-specific categories and out-of-class assessments are stored as they are posted, and only for the client that posted them.

CSV export and import​

OperationRouteAudience
Export a CSV 1.2.1 archive (bulk mode)GET /oneroster/admin/structures/{structureId}/exportorganization administrator
Import an archive (multipart, file field)POST /oneroster/admin/structures/{structureId}/import?mode=validate|importorganization administrator
Import from a remote REST providerPOST /oneroster/admin/structures/{structureId}/import/remoteorganization administrator
Import reportsGET /oneroster/admin/structures/{structureId}/importsorganization administrator
Configuration, clients, secret rotation/oneroster/admin/configuration, /clients, /clients/{id}/secretplatform administrator

On import, the organization selected in the archive is converted into the directory's own CSV import files and handed to the provisioning pipeline: homeroom classes become classes, scheduled classes become groups, and the external identifier is the sourcedId — which makes the import repeatable without creating duplicates. The validate mode produces the report without writing anything.

Remote imports are deliberately restricted to the providers declared in the configuration: HTTPS, same host and port, under the declared path.

Configuration​

oneroster:
issuer: https://ent.example.org # public origin (href of references, iss of tokens)
private-key: "<PEM PKCS#8>" # empty: ephemeral key, development only
kid: openent-oneroster-1
access-token-ttl-seconds: 3600
cache-seconds: 120 # Rostering cache, per client scope
max-limit: 10000 # ceiling for the limit parameter
import:
path: /tmp/oneroster-import # working directory for imports
remote-providers: [] # allowed remote REST providers

The directory of a given scope is read in one pass, then filtered, sorted and paginated in memory: the API targets clients attached to a handful of organizations. For a region-wide scope, prefer the CSV export over walking the REST API.

See also​