Moodle user and role management system

Source: Internet
Author: User
Tags manual php file first row

Note 1:

Moodle version: 2.3

Different versions Moodle related data will vary

First, user management

In addition to the system's own administrator users, Moodle users can be added in three ways.

1. Online Registration

Moodle enables users to register themselves online, requiring a normally used mailbox for authentication. Only authenticated users can log on to the system.

Open User Self-registration is: Using the Admin user login, "site management-" plug-in-"Identity authentication-" Management identity Authentication ", the" self-registration based on email "function open (as shown in Figure I), while the Settings page under the self-registration of the next part of the" email-based self-registration " (as shown in Figure II), the other is the need to ensure that the website email can be used normally.

Figure A

Figure II

2. Admin Add

Administrator in the "Site management-" user-"account-" Add Users "column, you can be a user to add a user. This addition does not need to be validated in a mailbox or other way.

Figure Three

3. Batch Import

Administrator in the "Site management-users-" account-"Upload users" column, you can make multiple users of bulk import.

Figure Four

Bulk import is usually uploaded by a text file (and can be selected directly) by the user. The data format in the text file is as follows:

Ø each line of the file contains a record

Ø each record is a series of data separated by commas (or other separators)

Ø the first row of records is the list of field names, the format of the definition file

Øusername, Password, FirstName, LastName, and email field names are required

Text files can be suffixes such as TXT, CSV, and so on, but are non-formatted text only.

The character encoding of the text file is generally used UTF-8, and Chinese is often used GBK.

In addition, there is a non-normal way, is directly write database user input, hehe. However, this is generally not recommended, after all, the password needs to be encrypted storage.

The default role is the authenticated user (authenticated user) after a successful (or added) registration.

The permissions of the authenticated user are that all users can get some permissions that cannot be assigned at the site level (for example, post a blog, manage their own calendars, and so on). Of course, its permissions can also be assigned directly by the administrator to the role.

second, role management

We need to understand the concept of the scene more before we explain the role and authority system.

the scene of Moodle

It refers to the user's range of activities in the Moodle system, which is a collection of functional interfaces or multiple interfaces of the same function.

The Moodle scenarios include:

Ø System Scenario

Ø User Scene

Ø Course Classification Scenario

Ø Course Scenario

Ø Active Module Scene

Ø section Scene

The system scene is the parent scene of all scenes, including the permissions of all the scenes, so the permissions are the most, the parent scene is a set of permissions for the child scene, and when the user enters an interface (scene), it will be restricted by the corresponding scene's permission.

User scenarios are user management scenarios, add, delete, configure user permissions, and so on.

The course classification scenario is to set up, configure, and browse the course classification scenarios.

The course scenario is the creation, configuration, and browsing of course scenarios.

The active module scenario is a scenario that establishes, configures, and browses activities in the course.

The section scene is a system of auxiliary functional modules, such as blogs, wikis and other plug-ins and other scenes.

By assigning a role to a user in a scene, you can give the user the permissions that the role has, but only in the current scene and all of the low-level scenarios it contains. For example, if a user is assigned a student role in a course, his or her roles in all the activities and sections of the course are students.

Moodle's role management

Figure Five

There are 8 default roles for Moodle.

Ømanager Administrator Role

Øcourse Creator Course Creator

Øteacher Teacher

Ønon-editing Teacher Tutor/teaching assistant/teacher without editorial rights

Østudent Students

Øguest visitors (users who are not logged in)

øauthenticated User Authenticated Users role (default role for all registered users)

øauthenticated User Onfrontpage Certified Home users role

The specific authority of each role is not elaborated, by the literal meaning that everyone should be able to understand. It is necessary to pay attention to the role of teachers, the default is not to establish the curriculum and course classification permissions, curriculum and course classification is established by the course creator to complete.

The following emphasis on the role of Moodle, if it is a beginner, in the Moodle role structure does not understand the situation, will be Moodle the role of the system feel very confused, how to assign user roles do not know how to start.

In the Moodle2.3 version, its role is divided into five levels:

Ø website Administrator

Ø system role

Ø Course Role

Ø active role

Ø Home Role

site Administrator Role

It is mainly for the entire Moodle platform management, responsible for the management of the entire site, responsible for teachers, curriculum administrators, such as the role of authorization, is the global role. It includes permission assignments for other roles and all the functionality of the entire site. The site administrator role Default User is admin. Its password and the general user's password calculation storage method is also different, is defined in the config.php file "$CFG->passwordsaltmain" and the password is mixed calculation. If the property value changes, the Admin user will not be able to log on.

In Moodle, the Admin user can set a user as the site administrator with the same super privileges as the Admin user. In Site Administration-users-permissions-site administrator, you can add or remove users from the site administrator role.

Figure Six

System Roles

It is mainly responsible for the construction and planning of the platform curriculum system and is the global role.

System roles include manager and course creator two roles. If you are a course creator role user, you can see in the foreground that you have added a course to this submenu item in the Site administration. Moodle system By default the system role establishes the course classification and the specific course, the other default role cannot carry on the related operation (except Admin).

You can assign system roles in the Site administration-users-permissions-assign system roles.

Figure VII

Course Role

It is primarily responsible for the implementation and use of a particular course and is a regional role.

This role category primarily includes roles such as manager, Teacher, Noediting-teacher, student, and so on.

Select a specific course, add course users and set user attribution roles in the "Settings-" course management-users-"Selected courses user" section. This allows users in the list to access the course resources based on their roles in the current course. One thing to note, however, is that it only works in the current course, and you need to continue doing so in other courses.

Figure Eight

Figure Nine

For teachers, each established course needs to add users to the course and assign actions to the user roles in the course. Such an operation may be cumbersome, in fact Moodle also offers a variety of elective courses to solve the problem of teacher use.

There are three ways to choose a course: Manual selection, visitor access, and self-help course selection. Manual Elective course refers to the current curriculum needs teachers to assign users, teachers can be a user to add their own courses, you can also assign a counselor (noediting-teacher) role of the user, he to the course users to manage, This is an easy way to relieve the burden of teachers; visitor accessibility means that when a teacher adds a new course, the current course is set up for visitors to access, so that all users can access the current course and there is no management of the course user; a self-help selection course is a function that the teacher opens the and configure the course password so that students can choose their own courses by password.

Figure 10

Figure 11

Active Role

In addition to assigning roles in a course, we can also assign roles to specific activities or resources. For example, a job, we can assign who is the teacher role, who is the role of the Counselor, who is the student. In some classes after the discussion of such a job, we can let a class monitor or a student to play a role as a teacher, this can save the time of marking, mobilize everyone's enthusiasm.

Figure 12

Home Role

It is mainly responsible for adding, deleting and layout of the homepage of the website, and it is the regional role.

This role category includes roles such as manager, Teacher, Noediting-teacher, student, and so on.

In the "Site management-" home-"Home role" column, you can add users to the appropriate role.

Figure 13

In the first page role category, the manager role by default can operate the homepage section of the Add, delete, layout, can be configured for all the role of the home page, the first page title, display the number of settings. Teacher role By default can operate the homepage section of the Add, delete, layout, to the home page non-edtiing teacher, Student role configuration, can be the first page title, display the number of settings. Non-editing teacher, student role in the home right almost, is the normal user rights, can see the home page all open section information.

The role of the home page has yet to understand what it is necessary to continue the study. According to the investigation, there is a saying that the role of the home page is for the needs of personalization, but the actual use of no specific experience how to personalize ...

Hansy

2012-10-22

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.