User Password change

User Password change

by manoj joseph -
Number of replies: 10

Is it possible to change a group of user password into single one?

For example my group contains user1,user2 and i want to change password of both as 112324.

How it is possible in moodle ?

Average of ratings: -
In reply to manoj joseph

Re: User Password change

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: User Password change

by manoj joseph -

I want to change the password of all the uploaded users not fresh creation of user

In reply to manoj joseph

Re: User Password change

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Do you mean that it didn't work when you tried it? wink
In reply to Howard Miller

Re: User Password change

by manoj joseph -
Bulk user action force password change availabe.My need is administrator should reset all the user passowod to some uniqe password.
In reply to manoj joseph

Re: User Password change

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
It may not be that easy, after all.

I created a user with this CSV file (which worked):
username,firstname,lastname,email,password
user1,first1,last1,user1@example.com,Password

Then tried to change his password with this CSV file:
username,firstname,lastname,email,password
user1,first1,last1,user1@example.com,NewPassword
with user upload settings as in the screen shot.

Result displayed:
Users updated: 0
Users having a weak password: 0
Errors: 0

The password is still 'Password', the old one. ??
Attachment userlist1-settings.png
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: User Password change

by Ken Task -
Picture of Particularly helpful Moodlers

Ran into same thing a few years ago ... all things possible via csv (supposedly) if and only if auth is manual.

Forgot exactly what entity attempting to do but involved have all users auth via a corp server via an Oauth2.  Entity had kinda a mess when it came users but decided for sure they no longer wanted to manage them via Moodle.

As long as user ID numbers ... that's the raw ID column in mdl_user table ... weren't changed, one could, get there but had to use a query on DB to change all auth to manual ... then csv changes could be made ... one more run via csv with a query for selected id numbers converting manual to oauth2 and blanking password as that was now retained only in their oauth2 server.

Something like that ... entity decided too much trouble .. couldn't get a accurate user list from whatever they had on their backends ... decided to leave about 1/2 users as they were .. and work on only new users.  Entity has since opted to move to Totora for 'better reporting' ... so have not a clue as to how they faired with migration to Totora (very hush/hush corp secret for some reason) ... think they did each course backup and imported backups - took 'em 3 months.

'SoS', Ken

In reply to Visvanath Ratnaweera

Re: User Password change

by manoj joseph -

Thank you it is changing

I made the setting like below


In reply to manoj joseph

Re: User Password change

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Do you mean, you could set the password to a new value through uploading a CSV file? If so, how exactly? Could you copy the content of the CSV file and add a screen-shot of the settings as in the example of my previous post?
In reply to Visvanath Ratnaweera

Re: User Password change

by manoj joseph -

Yes we can update password through CSV file.I have uploaded the CSV file and change the settings like below.It is working.user password change


In reply to manoj joseph

Re: User Password change [CLOSED]

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Thanks for the hint. I missed the setting Existing User Password = Update part!

With the following setting the password was changed to the new value in the CSV file.
Attachment userlist2-settings.png