(c) 2020. Katz Ueno (concrete5 Japan, Inc.) MIT License.
This is concrete5 Job to batch edit all existing users to make anonymous or edit.
For example, you have the production site. You may want to copy the data to test environment. When you copy the production data, you may want to erase all of existing user information to protect their privacy upon test.
This is bleeding edge add-on You need the PHP knowledge.
I want to add a feature to be able to configurable via dashboard. Your PR is welcomed.
concrete5 can set environment.
If this concrete5 environment is set as production or default, this job WILL NOT RUN for safety measurement.
- Upload the
batch_modify_users_jobfolder to /packages/ - Login to your concrete5 site as an administrator.
- Click on the
Dashboard’` icon, top right of page. - Click the
Extend concrete5link in open sidebar. - Find this package in the list of packages
Awaiting Installation. - Click the
installbutton.
- Open a file /packages/batch_modify_users_job/jobs/batch_modify_users.php
- Comment out line 38-46 IF you didn't set concrete5 environment and don't mind of RISKING to erase your production users data.
- Edit around line 55~68, due to the concrete5 restriction, you may not be able to apply multiple filters (checked upto 8.4.1).
- Edit around line 114-115 if you have additional user attributes that needs to be clean.
- Visit: Dashboard - System and Settings - Optimization - Automated Job
- Move to non-production or non-default environment concrete5 site, then run an automated job.