Univention Bugzilla – Bug 53485
UCS@school roles for users should be set automatically depending on objectClass and groups
Last modified: 2023-06-12 13:54:08 CEST
Currently it is not possible to set the ucsschool roles of any user in the UMC. That creates many complications and problems. If you create a SchoolAdmin from a Teacher, following the documentation, you get a faulty SchoolAdmin since the role is missing. To counteract that we could implement the following behavior in the ucsschool.lib: If a user is created or modified the ucsschool_roles are modified with the following rules: - If the objectClass for Student/Teacher/Admin/Staff is set, the user gets the corresponding role for all schools he is in the corresponding group for. - If the objectClass for Student/Teacher/Admin/Staff is unset the user has all corresponding roles removed. The same logic should be followed if corresponding groups are changed. But we cannot detect that when the user is changed via the UDM. And currently that is the only way to change the groups of an UCS@school User.