Create a cli script to allow for bulk delete of users from commandline

Bug #1760767 reported by Cecilia Vela Gurovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

Create a cli script to allow for bulk delete of users from commandline
The script should be able to:
 - delete all users that have never logged in (created by admin)
 - and/or delete all users that have not logged in since a certain date
 - and/or delete only those users from a certain institution To allow a server admin to clean up a site

Revision history for this message
Robert Lyon (robertl-9) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8753
Committed: https://git.mahara.org/mahara/mahara/commit/2dbbe1fbe0c7fe0aeab288bd85a9ecd1940eb6cb
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 2dbbe1fbe0c7fe0aeab288bd85a9ecd1940eb6cb
Author: Robert Lyon <email address hidden>
Date: Thu Mar 29 13:52:14 2018 +1300

Bug 1760767: Create a cli script to allow for bulk delete of users from commandline

To allow a server admin to clean up a site

The script should be able to:
- delete all users that have never logged in (created by admin)
- and/or delete all users that have not logged in since a certain date
- and/or delete only those users from a certain institution

The script has a 'dryrun' flag set to false by default to allow one to
check how many users will be deleted before actually doing the deletion

TODO
- do more checks

behatnotneeded

Change-Id: Ie73eb2daa6e8e1ae52d560ebcd149fec886d204c
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8806

Changed in mahara:
status: Fix Committed → In Progress
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8806
Committed: https://git.mahara.org/mahara/mahara/commit/fd9121ee6184ec5edd48a9c37d2a7df8200979cc
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit fd9121ee6184ec5edd48a9c37d2a7df8200979cc
Author: Robert Lyon <email address hidden>
Date: Thu Apr 19 08:10:48 2018 +1200

Bug 1760767: Allow the delete users script to target a group by ID

Allowing us to delete members based on group they are in

behatnotneeded

Change-Id: If803519e9719622bf4fe4c4c1a677a47ab0ead6f
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.