How to define the business email address via command line interface?


I would like to create users with a business email address via command line interface of domain management. In chapter I don’t see any corresponding command. Also for the definition of a certain activation time there seems to be no command. Is this this possible only via Univention Management Console?

Thanks for any help!

Hey Wolfgang,

you can set almost any UDM attribute via the command udm create --set as shown in the manual.
As stated in Q&A: Which mail fields for users are available in UCS?, the contact mail address corresponds to the UDM attribute e-mail, so the invocation would be:

udm users/user create --position cn=users,$(ucr get ldap/base) --set username=user --set lastname=Testuser --set password=test --set

Best regards