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
| Specification | Status 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.1 | Bulk export; import of 1.2 and 1.1 archives |
OAuth 2.0 client credentials (client_secret_basic, client_secret_post), 1.2 scopes | Implemented |
limit/offset pagination, X-Total-Count and Link headers; filter, sort/orderBy, fields | Implemented |
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.
| Prefix | Contents |
|---|---|
/ims/oneroster/rostering/v1p2 | organizations, academic sessions, courses, classes, users, enrolments, demographics |
/ims/oneroster/gradebook/v1p2 | line items, results, categories, score scales, assessments |
/ims/oneroster/resources/v1p2 | resources and how they are attached to classes and users |
/oneroster/oauth/token | access token issuance |
/oneroster/admin | clients, export and import (see below) |
Both families of prefixes must be routed to the module's port (8171).
Authentication
-
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. -
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.readonlyWithout a
scopeparameter the token carries every scope the client is allowed. -
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.readonly | Rostering collections and plain reads (demographics excluded) |
roster.readonly | the whole Rostering service, nested routes included (demographics excluded) |
roster-demographics.readonly | /demographics (date of birth) |
gradebook-core.readonly, gradebook.readonly | reading the Gradebook service |
gradebook.createput, gradebook.createpost, gradebook.delete | writing to the Gradebook service |
assessment.readonly, assessment.createput, assessment.delete | assessmentLineItems and assessmentResults |
resource-core.readonly, resource.readonly | the 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
| OneRoster | Open ENT |
|---|---|
org school | organization (its identifier is the national organization code) |
org district | the parent body the organization reports to (district, local authority…) |
academicSession schoolYear | the school-year period held by the school-life application, otherwise the span of the known periods, otherwise September 1 – August 31 |
term / gradingPeriod | the organization's terms and semesters |
| course | a subject taught in the organization; a homeroom course carries the classes themselves |
class homeroom | a class |
class scheduled | one subject taught to one class or group |
| user | a member: learner → student, instructor → teacher, guardian → parent, staff → aide (organization administrator → siteAdministrator) |
| user.agents | guardian ↔ learner relationships |
| user.grades, class.grades | the local grade level, translated into a CEDS code (KG, 01…12) |
| enrolment | class or group membership; primary marks the lead instructor of a class |
| demographics | date of birth only |
tobedeleted status | a member who has left the directory |
| lineItem, result, category | assignments, grades and comments, and assessment types, held by the grade book application |
| resource | a 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 ascheduledclass; 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;resultValueMaxsets the maximum score (20 by default).PUT /results/{sourcedId}records the grade of a learner in that class (0 ≤ score ≤ maximum) and, whencommentis supplied, the written feedback. AscoreStatusofexemptornot submittedwith 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 withsourcedIdPairs. - 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
| Operation | Route | Audience |
|---|---|---|
| Export a CSV 1.2.1 archive (bulk mode) | GET /oneroster/admin/structures/{structureId}/export | organization administrator |
Import an archive (multipart, file field) | POST /oneroster/admin/structures/{structureId}/import?mode=validate|import | organization administrator |
| Import from a remote REST provider | POST /oneroster/admin/structures/{structureId}/import/remote | organization administrator |
| Import reports | GET /oneroster/admin/structures/{structureId}/imports | organization administrator |
| Configuration, clients, secret rotation | /oneroster/admin/configuration, /clients, /clients/{id}/secret | platform 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
- Standards and interoperability — LTI 1.3 and the course interchange formats.
- Provisioning — the import pipeline OneRoster reuses.
- Archive formats — SCORM, cmi5, xAPI, Common Cartridge.
- Applications and rights.