A teacher at school A resets the passwords for all his students in his class but gets an error:
An error occured Could not process the request. Internal server error during "schoolusers/query (student)".
In this class there is a student who usually is registered at school B.
Configure your teacher to be a teacher at school B, too. Otherwise he has no permission to edit the user from school B.