Change password of existing user on terminal or backend

332 views
Skip to first unread message

Lewatle Johannes Phaladi

unread,
Aug 21, 2023, 8:22:46 AM8/21/23
to DSpace Technical Support
Dear All,

I would like to change or update password for user over command mode, I have tried this line of code from bin directory, ./dspace user --modify -m e...@example.com --password 202308000 please update where possible.

Regards,
Lewatle 

DSpace Technical Support

unread,
Aug 21, 2023, 5:59:08 PM8/21/23
to DSpace Technical Support
Hi Lewatle,

It appears to me that the "--modify" option for that "./dspace user" command doesn't support "--password".  See the docs here: https://wiki.lyrasis.org/display/DSDOC7x/Managing+User+Accounts#ManagingUserAccounts-Tomodifyanaccount:

I think the only way to modify a password via the backend would likely be via the REST API.  Here's the endpoint where you could do so: https://github.com/DSpace/RestContract/blob/main/epersons.md#add

Tim

Mark H. Wood

unread,
Aug 22, 2023, 10:05:16 AM8/22/23
to dspac...@googlegroups.com
'dspace user' has no '--password' option.

'bin/dspace user --modify --newPassword should prompt for a new
password:

mwood@mhw ~/dspaces/earchive7.4 $ bin/dspace user -M -h
usage: user --modify [options]
-c,--requireCertificate <arg> if 'true', an X.509 certificate will be
required for login
-C,--canLogIn <arg> 'true' if the user can log in
-g,--givenname <arg> the person's actual first or personal
name
-h,--help explain --modify options
-i,--newEmail <arg> new email address
-I,--newNetid <arg> new network ID
-l,--language <arg> the person's preferred language
-M,--modify modify an EPerson
-m,--email <arg> the user's email address, empty for none
-n,--netid <arg> network ID associated with the person,
empty for none
-s,--surname <arg> the person's actual last or family name
-t,--telephone <arg> telephone number, empty for none
-w,--newPassword prompt for new password

If this does not work, please report it as a bug.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc
Reply all
Reply to author
Forward
0 new messages