Skip to content

Enrollments

Enrollments represent the relationships between users and classes. They link students to the classes they attend, teachers to the classes they teach, and both to the school context where the enrollment occurs.

OneRoster 1.1 Read-only Endpoints: 4

All paths are relative to your API base URL.

Service callPathSchool-year scope
getAllEnrollments/ims/oneroster/v1p1/enrollmentsCurrent year only
getEnrollment/ims/oneroster/v1p1/enrollments/{id}No
getEnrollmentsForClassInSchool/ims/oneroster/v1p1/schools/{id}/classes/{id}/enrollmentsNo
getEnrollmentsForSchool/ims/oneroster/v1p1/schools/{id}/enrollmentsCurrent year only

The “current school year” is determined by the academic session marked as active in Untis Platform — typically the school year currently in progress.

EndpointReturns
getAllEnrollmentsCurrent school year enrollments only
getEnrollmentsForSchoolCurrent school year enrollments only
getEnrollmentsForClassInSchoolEnrollments independent of school year
getEnrollment (by ID)The specific enrollment regardless of year

Uses the shared OneRosterClient — see the Users page for the full client setup.

Fetch enrollments for the current school year:

OneRosterClient client = new OneRosterClient(tenantId, clientId, password, new ObjectMapper());
OneRosterResponse<EnrollmentDto> result = client.list(
"/ims/oneroster/v1p1/enrollments", "enrollments", EnrollmentDto.class, null, null, 100, 0);

Fetch all records at once:

// Use a high limit to retrieve all records in a single request
OneRosterResponse<EnrollmentDto> result = client.list(
"/ims/oneroster/v1p1/enrollments", "enrollments", EnrollmentDto.class, null, null, 100000, 0);