How to get students / teachers belongs to a school level

How to get students and teachers belongs to a specific school level?

It seems only Courses and Sections can take a school level parameter

https://api.sky.blackbaud.com/school/v1/academics/courses[?department_id][&level_id]
https://api.sky.blackbaud.com/school/v1/academics/sections?level_num={level_num}[&school_year]

To get all students in a school level, I would have to

  • Get all sections by school level
  • Call Academics students by each section to get all the students

This would work, but this approach is not efficient. And I cannot get teachers at the school level.

Is there a better way to get students and teachers by the school?

Comments

  • Jared Harbour
    Jared Harbour Blackbaud Employee
    Eighth Anniversary Kudos 1 Name Dropper Participant

    The most effective way to get students and teachers for the entire school is to use the User Extended route :

    This would get you all the students for the school and not just the students within a section. What are you trying to do with the list of students and teachers for a section?

  • Hi Jared,

    Thanks for your help!
    I am trying to filter all the teachers and students on the school level. (I prefer to save the entities only for the specified school level.)

    The API you suggested, Users extended by role(s), does not accept a school level parameter, neither contain school level in response.

  • Jared Harbour
    Jared Harbour Blackbaud Employee
    Eighth Anniversary Kudos 1 Name Dropper Participant

    What sort of data are you looking to get for teachers and students based on school level? Are we talking basic user information or are you trying to do something specific?

Categories