Univention Bugzilla – Bug 56045
Re-imported teacher not added to teachers group in the new school
Last modified: 2023-05-08 17:16:44 CEST
With `ucs-school-lib-common 13.0.36`. source.csv ```csv "firstname", "lastname", "name", "record_uid", "schools" "test", "test", "test", "test", "a,b" ``` config.json ```json { "csv": { "mapping": { "schools": "schools", "firstname": "firstname", "lastname": "lastname", "name": "name", "record_uid": "record_uid" } } } ``` command ```bash /usr/share/ucs-school-import/scripts/ucs-school-user-import -i source.csv --set source_uid=importer user_role=teacher -c config.json ``` ``` groups: cn=Domain Users a,cn=groups,ou=a,dc=test,dc=intranet groups: cn=lehrer-a,cn=groups,ou=a,dc=test,dc=intranet groups: cn=lehrer-b,cn=groups,ou=b,dc=test,dc=intranet ``` Then, reimported with school a and c (instead of b). The user in UDM has: ``` groups: cn=Domain Users a,cn=groups,ou=a,dc=test,dc=intranet groups: cn=lehrer-a,cn=groups,ou=a,dc=test,dc=intranet ``` The group `cn=lehrer-c` is missing