Cohorts are used to bulk enrol users into one or more courses. If you wish the cohort to be members of a group within the course you will then have to add them to a group in a further step.
This database scheme allows to search for course groups or user groups in a single query, as in pre-1.8 moodle. Any required group-data may be obtained by either a join of usually just two tables, or two separate queries, one for grouping and other for groups in grouping.
Steps to add users to a group 1.8. Add/remove users Moodle 1.8. To assign users to a group: On the Groups page, click the "Add/remove users" button. In the "Potential members" list, select the students you want to add to the group. Click the arrow button that points towards the "Existing members" list.
Groupings are sets of groups related in use or functional logic. Use of groupings should be optional, not mandatory (preserve old-style, pre-1.8, groups usage). A group may belong to several groupings. Real use is easier to setup if this flexibility is allowed.
To assign users to a group:On the Groups page, click the "Add/remove users" button.In the "Potential members" list, select the students you want to add to the group.Click the arrow button that points towards the "Existing members" list.
Re: How to enrol one user into multiple courses at once? You can go to site admin --> courses --> select your course --> users --> Enrolled users. From the list of users, click on the Assign Role icon against the user and select the required Role to be assigned.
Click the top left Menu icon to toggle open the sidebar, and click Participants. To just see the students, select All Students from the Current Role pull-down menu on the right. All Students includes both students, and those in the course as petitioners.
Go to Settings>Site administration>Users>Accounts>Bulk user actions and select the users you wish to export. From the dropdown "With selected users", choose "download" and choose the type of file you wish to download from text, ODS or Excel.
Adding users to a cohort in bulkAccess Administration > Site administration > Users > Accounts > Bulk user actions.Find users by setting an appropriate filter.Add users from the available list to the selected list.Choose 'Add to cohort' with selected users.
Add teachers and studentsLog in with your administrator account and go to the course where you want to add teachers and students.From the left panel (Navigation drawer) click Participants.Click Enrol users.From the dropdowns, select the users you want and the role you want to give them:
To export a list of participants, choose the option “Export“ and your favored format. In the following page, additional settings can be chosen. Afterwards, click “Submit”. Now, you can see the data that will be exported.
In the Navigation panel on the left of your Moodle site, click on "Participants". Find a student who has dropped. In the Status column, there will be an orange box that says "Dropped", and to the far right of their row will be an unenroll (trash) icon. Click the unenroll icon for a student to remove them from the list.
This is how it's done (version 1.8 and 1.9) : Go to the admin menu - users - permissions - user policies. Scroll down to the bottom of the page -' hide user fields' and click on 'last access'.
Create a . CSV File containing the users you wish to suspendNavigate to Site administration ► Users ► Accounts ► Bulk user actions.Go to new filter and press on show more this will bring up a full list of filters you can apply.More items...
Exporting Content From Moodle From within a course, from the course Administration menu, choose Backup. Select whether to export as a Common Cartridge or a native Moodle file. Follow the succession of screens, to complete the process.
An administrator can enable flat file enrolment as follows:Go to Site administration > Plugins > Enrolments > Manage enrol plugins and click the eye icon opposite Flat file (CSV). ... Click the settings link, configure as required (see details of settings below), then click the 'Save changes' button.
To add groups to a grouping: In your course, click Administration > Course administration > Users > Groups. Click the groupings tab: If necessary, create a new grouping by clicking the create grouping button on the groupings page. An optional grouping ID number (an advanced setting) may be added for matching the grouping against external systems. ...
To use a particular grouping in an activity: In the "edit settings" link of the Settings block for the activity, click the "Show advanced" button in the common module settings section. Ensure that the group mode is set to separate or visible groups. Select the grouping from the grouping dropdown menu.
To be part of the United States Olympic Team, you must first be a swimmer, a gymnast, or a runner. You cannot be in the US Team without first being an athlete in a specific sport. The sport is your group.
A grouping is a collection of groups within a course. Using groupings allows you to direct tasks at one or more groups in your course, so that they can work together on the tasks.
Once some groupings have been created, a default grouping for course activities and resources may be set.
To be able to restrict an activity, resource or course topic to a grouping, Restrict access must be enabled. This will result in a 'Restrict access' section in the activity, resource or topic settings and a grouping restriction can then be added.
TIP: To see other groups in this list, you will have to go to the Course administration>Groups tab and use the Auto-create groups button. One you set the auto create fields, then a group will appear under this heading in addition to "Default".
A group or grouping can be used on two levels:
Activity level - each activity that supports groups can also have its own group mode defined. The course setting under Groups must have "Force" set to "No" to allow individual activities to allow their own group settings to work.
A "force" group mode at the course-level, will override any individual activity "group mode" setting, with the one set in the course.
Template:Course admin Enabling Groups will allow the teacher to create sets of students. By default, the groups settings are turned off in a course. Groups can be used in the Context of a course or in a specific course activity.
The course group mode is useful when the teacher is going to add several activities with the same group setting. In a course with many activities that have different group mode settings, a teacher might enter them in batches, using the group course setting to save time.
Each group can only see their own group, others are invisible.
I want to perform a quiz program for 150 employes at a time. I dont want them to enroll to my course separately. I want to create a group with 150 users and i should be able to enroll this group to a course, then automatically the 150 users under this group should be enrolled for this course.
If you are using Moodle 2, have you looked at Cohorts? http://docs.moodle.org/22/en/Cohorts
You can have several classes/groups working in a single course with different (or the same) teacher. Groups mode is a way of filtering the students so that work and grades can be accessed separately. See Groups for more information. There are three different groups modes – No groups, Separate Groups, Visible Groups.
A group exists only within a course. You might have a class 10B for example which you want to enrol in course 1 and course 2. The group would need to be created in both courses and its members enrolled separately in both courses. Cohorts are groups of users created by admin which can then be brought in "en masse" to courses.
If force is set to yes, then all activities are group activities. This overrides any settings for individual activities. If force is set to no, then activities are only group activities if they have been set to group mode. In this case, each activity requires to be set to group mode individually.
Yes. One of the optional field names that can be uploaded in the flat file is "group1, group2, etc". The group must be associated to the corresponding course and the course short name used in the field course1. If the group doesn't already exist then Moodle will create the group.
You can assign a teacher to a group in exactly the same way that you assign a student to a group.
For Separate Groups mode, the capability moodle/site:accessallgroups may be used to restrict access to all groups in a particular context. If this capability is removed from the teacher role (either within a course or globally if appropriate) then they will only see the students they teach when accessing the gradebook for example.
A student can see the profile of all teachers that are members of their group or that have edit rights.
I'm developping a plugin. I want to create a table 'courseGroup' which may have a lot of courses.
Lots of things are possible, including this - but are you absolutely sure that this is something that could not be solved using cohorts and cohort sync enrolment?
To check I understand correctly, you want to display the Course Groups where a user has a certain role within one of the courses?
To make possible to associate a grouping to a module instance a “groupingid” field must be added to the course_modules table. In the same way course table declare a “groupingid” field to hold the default grouping to use in visible/separate group modes. In both cases, there should be no obligation to declare or use a grouping at any level. A default value groupingid=0 must be used in both tables. Groupings/groups managing functions must understand groupingid=0 as meaning to use ALL groups belonging to a course in a flat list (default function in pre-1.8 versions)
Groupings are sets of groups related in use or functional logic. Use of groupings should be optional, not mandatory (preserve old-style, pre-1.8, groups usage). A group may belong to several groupings.
A grouping Special may be defined containing just one group (with students of any section) or several groups of “special” students, one from each section/lab. This may be used to get private content by each teacher in a course. Let say professorA teaches Section1 theory and Lab2 practices.
This separation would make the coding much easier because the two parts would be independent - local grouping would not be breaking the course separation rule (anything outside of course breaks normal backup/restore).
exclusive - to allow multiple-group membership within a grouping or impose single-group membership: a user can be member of just one an d only one group of this grouping.
The configuration form for each activity includes a setting for groupmode: “no groups”, “visible groups” or “separate groups”. If the activity (or resource) is configured in any of the later two (visible/separate) then a new option “Use grouping” must be set. This parameter controls the particular set of groups to be used within the activity.
Courseid=0 would label global groups. Tables groups_courses_groups and groups_courses_groupings would be no longer needed. Special logic should be introduced into functions in groups libraries to manage this exception, global groups.