Q&A: How can I hide input fields in udm

Question:

Can I hide input fields in udm and how can I hide the homeDirectory field or title?

Answer:

We have ucr variables which can be used. It is kind of tricky and only understandable by code reading. It is also not documented though. So you can get the structure by this examples:
ucr set directory/manager/web/modules/users/user/properties/unixhome/__hidden=yes hides the home directory

ucr set directory/manager/web/modules/users/user/properties/title/__hidden=yes hides the title property

Also intersting:

https://docs.software-univention.de/developer-reference/5.0/en/udm/udm-modules.html#udm_modules_globals.property_descriptions

Possible pitfalls

Das LDAP-Objekt konnte nicht gespeichert werden: LDAP-Fehler: Object class violation: object class 'posixAccount' requires attribute 'homeDirectory'.

This occurs if you used
ucr set directory/manager/web/modules/users/user/properties/unixhome/options='hidden'

Mastodon