Download presentation
Presentation is loading. Please wait.
Published byAusten Freeman Modified over 8 years ago
1
Yarra Hills Secondary College ©2015 Bulk creation of parent accounts MoodleMoot Australia 2015
2
A big thank you to Mary Cooch – blogged a solution – http://www.moodleblog.net/2012/11/05/bulk-add- parents-to-children-in-moodle-parent-role/ Maxime Pelletier – Moodle plugin Penny Leach – Original plugin
3
The problem We want parents to have access to their students’ courses Moodle requires this to be done one parent at a time – Create a parent account – Assign parent to the student – Inform parent of account details
4
The Solution Create Parent role – See https://docs.moodle.org/23/en/Parent_rolehttps://docs.moodle.org/23/en/Parent_role Create cohort called Parents – this makes it easy to find parent accounts – See https://docs.moodle.org/23/en/Cohortshttps://docs.moodle.org/23/en/Cohorts
5
The Solution Create csv file of parent data – username,password,firstname,lastname,email, role1,cohort1 Example
6
The Solution Parent data was exported from CASES21 – NOTE: The list was crosschecked to remove any parents with access restrictions Parents without email were excluded Username was family ID (from CASES21) with a f or m added for female parent or male parent – one account each Password randomly generated
7
The Solution Create csv file of parents, child and role – username,childusername,parent Example Note: a parent with more than one child must have a separate entry for each child.
8
The Solution Bulk create Parent accounts using – Site Administration Users Accounts Upload Users use csv file of parent data
9
The Solution Create a new table in the Moodle database Backup database first! – Table name: mdl_parent – 3 fields: parent, child, role – all varchar(255) I use phpMyAdmin to access mysql database Import data from csv file into table
10
The Solution Install Moodle plugin User role assignment from external database Plugin name: enrol_dbuserrel https://moodle.org/plugins/view/enrol_dbuserrel https://moodle.org/plugins/view/enrol_dbuserrel Go to Settings>Site administration>Notifications to enable plugin
11
The Solution Manage the setting for the dbuserrel plugin – Map new database fields to Moodle fields
12
The Solution
14
Enable plugin – Administration > Plugins > Enrolments > Manage enrol plugins – ( Turn eye on )
15
The Solution Run the synchronisation cron – Run Command Prompt – Navigate to PHP directory containing php.exe (eg. c:\Program Files (x86)\PHP\v5.6) – Execute php.exe –f "c:\inetpub\wwwroot\moodledev\enrol\ dbuserrel\cli\sync.php” Note: This step removes all previous parent roles
16
The Solution Bulk email parents with their details using Word Mail Merge
17
Questions blackwell.stephen.j@edumail.vic.gov.au PowerPoint: https://goo.gl/NbmH6k
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.