Bug 41856 - ucsschool-import: add section to manual about ucsschool.lib User Attributes / UDM properties mapping
ucsschool-import: add section to manual about ucsschool.lib User Attributes /...
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: Documentation
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 41739
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-26 15:13 CEST by Daniel Tröder
Modified: 2017-02-12 23:23 CET (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2016-07-26 15:13:40 CEST
+++ 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!
Comment 1 Daniel Tröder univentionstaff 2016-07-26 17:36:54 CEST
r71248: some cleanup
r71249: hint about not storing User attributes in udm_properties
r71250: publish