acs_user::update (public)
acs_user::update -user_id user_id [ -authority_id authority_id ] \ [ -username username ] [ -screen_name screen_name ] \ [ -password_question password_question ] \ [ -password_answer password_answer ] \ [ -email_verified_p email_verified_p ]
Defined in packages/acs-tcl/tcl/community-core-procs.tcl
Update information about a user. Feel free to expand this with more switches later as needed, as long as they're optional.
- Switches:
- Options:
- -user_id (required)
- The ID of the user to edit
- -authority_id (optional)
- -username (optional)
- -screen_name (optional)
- -password_question (optional)
- -password_answer (optional)
- -email_verified_p (optional)
- -authority_id
- Authority
- -username
- Username
- -screen_name
- The new screen_name for the user
- -password_question
- The new password_question for the user
- -password_answer
- The new password_question for the user
- -email_verified_p
- Whether the email address has been verified
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- auth_authentication_implementations, demote_promote_a_user
Source code: set cols [list] foreach var { authority_id username screen_name password_question password_answer email_verified_p } { if { [info exists $var] } { lappend cols "$var = :$var" } } db_dml user_update {} acs_user::flush_user_info -user_id $user_idGeneric XQL file: <fullquery name="acs_user::update.user_update"> <querytext> update users set [join $cols ", "] where user_id = :user_id </querytext> </fullquery>packages/acs-tcl/tcl/community-core-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/community-core-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/community-core-procs-oracle.xql