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

Hi,

I would like to create users with a business email address via command line interface of domain management. In https://docs.software-univention.de/manual-5.0.html chapter 4.10.2.1 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 e-mail=user@example.com

Best regards

Mastodon