Control Access Wifi with User manager into a school

Dear All,
I have the following sistuation.
In a school with around 40 classrooms and 500 total students (20 each classrom), there is an Uqbiquity Access Point. All access point are managed from Ubiquity key. The main Router is a Mikrotik CCR.
I would like to manage internet connection of eas single classrom so that the teacher may disconnect internet inside the classrom keeping the ipad connected to the access point.
I thought to use User Manager, with an user database like radius and each studient have his internet account. So in this scenario I can disable connection of all the classroom.
Is this a good way?
And how can i do a interface (better a web interface) where teacher may disconnect all studients?

Any suggestion is welcome.
Regards
Luca
Italy