tridentli/trident

less than helpful command line (tcli)

Closed this issue · 2 comments

morrowc@portal.usa3:~$ tcli user get ident kevinthomsen1585
kevinthomsen1585

really? I would never have guessed that the userid i put in is the userid of the user :(

I really want to know: "for user X what is their relevant data in the system?" I guess I can do that by asking for each in turn:
image Image - Upload an image of yourself, the system will scale it
ident User Name - The username of this user
descr Full Name - Full Name of this user
name_first First Name - The First Name of the user
name_last Last Name - The Last name of the user
affiliation Affiliation - Who the user is affiliated to
post_info Postal Details - Postal address or other such details
sms_info SMS - The phone number where to contact the user using SMS messages
im_info I.M. - Instant Messaging details
tz_info Timezone - Timezone details
tel_info Telephone - The phone number where to contact the user using voice messages
airport Airport - Closest airport for this user
bio_info Biography - Biography for this user
sysadmin System Administrator - Wether the user is a System Administrator
login_attempts Number of failed Login Attempts - How many failed login attempts have been registered
no_email Email Disabled - Email address is disabled due to SMTP errors
hide_email Hide email address - Hide my domain name when forwarding group emails, helpful for DMARC and SPF
recover_email Email Recovery address - The password used for recovering passwords
furlough Furlough - Extended holiday or furlough
entered Entered - Timestamp in UTC
activity Last Activity - Timestamp in UTC

(also, 'username' here means really 'ident', right? or it seems that way)

but that seems ... less helpful. This also doesn't tell me the user's associated email addresses, though I can find that in:
$ tcli user list username

I can set a user's email per group with:
$ tcli user email member set

which seems cumbersome for 'change all delivery'... is there a way to do all delivery without a shell loop?

$ for d in $(tcli user email member list floobart | awk '{print $1}'); do

tcli user email member set floobart $d floobart@doggiefun.com
done
Group email updated

is the loop I ended up using... 'group email updated' maybe is better stated as:
"set user email delivery in tg floobart@doggiefun.com"

or that'd be helpful to me, anyway.

I'll add a sysadmin only "user set_password $ident $password"
and a "user view $ident".