Univention Bugzilla – Bug 41856
ucsschool-import: add section to manual about ucsschool.lib User Attributes / UDM properties mapping
Last modified: 2017-02-12 23:23:31 CET
+++ This bug was initially created as a clone of Bug #41739 +++ ------------------------ The ucsschool.lib.models.user.User class has various attributes (of type ucsschool.lib.models.attributes.Attribute) that are mapped to users/user UDM properties when opening/saving/modifying. The ucsschool.importer.models.import_user.ImportUser class has an attribute 'udm_properties' that is a Python dictionary. Its keys must be the names of users/user UDM properties. When saving/modifying their values are stored in the ImportUsers UDM object. When both attributes could be used (e.g. User.email and ImportUser.udm_properties["mailPrimaryAddress"] or User.firstname and ImportUser.udm_properties["firstname"]) then the ucsschool.libs must be used, and the key must not exist in udm_properties. Otherwise data will be lost upon either creation or modification!
r71248: some cleanup r71249: hint about not storing User attributes in udm_properties r71250: publish