I'ld like to make a sub admin be able to change other user's passwords depending on other user's role or uid.
The sub admin should be able to type the password by himself. Emailing a generated password is unfortunatley no optionn since the aimed user accounts will be used by a quite loose group of people (teachers and pupils, sub admin wants to change password every school year).
Until now there are only very few different accounts where that needs to happen. So can I maybe do that with uids?
Is it maybe possible to build a block that provides a form with password fields of the desired users? What hooks or forms would I need to use or alter then?
Any idea and/or explanation is very much appreciated!