Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: User policies.

User policies: Difference between revisions

From MoodleDocs
(→‎Auto-login guest: note re. guest login button)
(Updated with change in https://github.com/moodle/moodle/commit/ed080a580ffd0eea70ad3eaa9214234cf2463034?diff=split)
(48 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Moodle 1.7}}Location: ''Administration > Users > Permissions > User policies''
{{Roles}}
==User policies==
The following settings may be changed by an administrator in ''User policies'' in the Site administration.


===Role for visitors===
Users who are not logged in to the site will be treated as if they have the role specified here, granted to them at the site context. The role of Guest is the default and the recommended setting for standard Moodle sites. The user will still be required to login to participate in an activity.


==Default role for all users==
===Role for guest===
This option specifies the role that will automatically be assigned to the guest user. This role is also temporarily assigned to non enrolled users when they enter a course that allows guests without password.


The default role for all users should generally be set to [[Authenticated user]] (Moodle 1.8 onwards) or Guest (Moodle 1.7). If it is set to Student then the result is that all students are enrolled on all courses.
(If you wish to deny guest access to a site altogether, the guest login button should be set to hide in ''Manage authentication'' in the Site administration.)


==Auto-login guest==
===Default role for all users===


If not set, then visitors must click the "Login as a guest" button before entering a course which allows guest access.
It is recommended that the default role for all users is set to [[Authenticated user]]. To set it to a custom role, the custom role must be assignable in the system context and have role archetype set to none.


Note: If auto-login guest is set, the guest login button also needs to be set to show (via ''Administration > Users > [[Authentication]]''), even though visitors won't necessarily use it.
Note: It is not recommended that the default role for all users is set to student.


==Roles that are not synchronised to metacourses==
===Creators' role in new courses===
Moodle will automatically enroll the user creating a new course in the course with the role specified in this setting.  Moodle checks that the role used for creating the course eg "Course creator" has the right to assign the specified role in the new course. This means that the following capabilities needs to be set on the course creator role before the user is enrolled automatically : 
* moodle/course:create | Allow 
* moodle/course:manageactivities | Allow
* moodle/course:viewparticipants | Allow
* moodle/role:assign | Allow


[[Metacourses]] combine enrolments from multiple courses. You will probably want users to have the same role in the metacourse as in the normal courses. If not, select the roles which should not be synchronised.
If the course creator role is not setup correctly the user will be enrolled in the course without any roles.  


==Hide user fields==
===Auto-login guest===
User fields appear on users' profile pages. You can increase student privacy by hiding selected user fields.


[[Category:Administrator]]
If not set, then visitors must click the "Login as a guest" button before entering a course which allows [[Guest|guest access]].


[[fr:Règles Utilisateurs]]
Note: If auto-login guest is set, the guest login button also needs to be set to show in ''Manage authentication'' in the Site administration, even though visitors won't necessarily use it.
 
===Hide user fields===
The following user fields appear on users' profile pages. Certain user fields are also listed on the course participants page. You can increase student privacy by hiding selected user fields.
 
Description, city/town, country, web page, ICQ number, Skype ID, Yahoo ID, AIM ID, MSN ID, last access, My courses and first access and groups
 
*User fields on users' profile pages are hidden from all users with the capability [[Capabilities/moodle/user:viewhiddendetails|moodle/user:viewhiddendetails]] not set.
*User fields on the course participants page are hidden from all users with the capability [[Capabilities/moodle/course:viewhiddenuserfields|moodle/course:viewhiddenuserfields]] not set.
 
===Show user identity===
 
Any of the following fields may be shown to users with the capability [[Capabilities/moodle/site:viewuseridentity|moodle/site:viewuseridentity]] when searching for users and displaying lists of users.
 
*Username (new in 3.7)
*D number
*Email address
*Phone number
*Mobile phone
*Department
*Institution
*City/town
*Country
 
This setting is useful for sites with large number of users, where the likelihood of users with the same name is high.
 
Locations where user identity fields are shown are as follows:
 
*User selectors ([[Assign roles]] in some places, [[Groups|groups]], forum subscribers)
*[[Browse list of users]]
*[[Participants]]
*[[Gradebook|Grader report]]
*[[Quiz reports]]
*[[Using SCORM|SCORM reports]]
*[[Using Assignment|Assignment submissions]]
*[[Using Course completion|Course completion report]]
*[[Using Activity completion|Activity completion report]]
 
Tip: Select only one or two fields that are mandatory at your institution. Do not select more than two fields otherwise tables become very wide.
 
===Full name format===
 
See [[Additional name fields]] for details, also about the alternative full name format.
 
===Maximum users per page===
 
You can choose here the maximum number of users to be displayed when searching in courses, groups, cohorts etc. The default is 100 but if your Moodle site is very large you can increase the number here.
 
===Enable Gravatar===
 
[http://gravatar.com/ Gravatar] (an abbreviation for globally recognized avatar) is a service for providing globally unique avatars.
 
If a user has not uploaded a user picture, Moodle will check whether the user's email address has an associated gravatar and if so, will use the gravatar as the user's picture.
 
* [http://www.youtube.com/watch?v=Z4b7tJedlMA Use your Gravatar in Moodle 2.2 screencast]
 
===Gravatar default image URL===
 
In Moodle 2.3.3 onwards, if gravatars are enabled, an alternative default user picture may be specified. The options are:
 
* A gravatar default image - by entering a code such as mm. See https://en.gravatar.com/site/implement/images/ for codes of other gravatar default images.
* A specified image - by entering the image URL
 
If the field is left empty then the theme's default user picture is used.
 
==Unsupported role assignments==
 
Unsupported role assignments are role assignments in contexts that make no sense for that role, such as the course creator role in the course or activity context, or the teacher role in the user context.
 
Prior to Moodle 2.0, there was no 'Context types where this role may be assigned' setting in the edit role form, and so any role could be assigned in any context. Upon upgrading a site from 1.9, any role assignments in contexts that make no sense for that role are listed as unsupported role assignments.
 
In general, it is safe to delete all unsupported role assignments. In doing so, the worst that can happen is for a user to be unassigned a custom role; no other data loss will occur.
 
[[Category:Site administration]]
 
[[de:Einstellungen für Rollen]]
[[fr:Réglages des rôles]]
[[ja:ユーザポリシー]]
[[ja:ユーザポリシー]]
[[es:Políticas para el usuario]]

Revision as of 07:53, 15 October 2019


User policies

The following settings may be changed by an administrator in User policies in the Site administration.

Role for visitors

Users who are not logged in to the site will be treated as if they have the role specified here, granted to them at the site context. The role of Guest is the default and the recommended setting for standard Moodle sites. The user will still be required to login to participate in an activity.

Role for guest

This option specifies the role that will automatically be assigned to the guest user. This role is also temporarily assigned to non enrolled users when they enter a course that allows guests without password.

(If you wish to deny guest access to a site altogether, the guest login button should be set to hide in Manage authentication in the Site administration.)

Default role for all users

It is recommended that the default role for all users is set to Authenticated user. To set it to a custom role, the custom role must be assignable in the system context and have role archetype set to none.

Note: It is not recommended that the default role for all users is set to student.

Creators' role in new courses

Moodle will automatically enroll the user creating a new course in the course with the role specified in this setting. Moodle checks that the role used for creating the course eg "Course creator" has the right to assign the specified role in the new course. This means that the following capabilities needs to be set on the course creator role before the user is enrolled automatically :

  • moodle/course:create | Allow
  • moodle/course:manageactivities | Allow
  • moodle/course:viewparticipants | Allow
  • moodle/role:assign | Allow

If the course creator role is not setup correctly the user will be enrolled in the course without any roles.

Auto-login guest

If not set, then visitors must click the "Login as a guest" button before entering a course which allows guest access.

Note: If auto-login guest is set, the guest login button also needs to be set to show in Manage authentication in the Site administration, even though visitors won't necessarily use it.

Hide user fields

The following user fields appear on users' profile pages. Certain user fields are also listed on the course participants page. You can increase student privacy by hiding selected user fields.

Description, city/town, country, web page, ICQ number, Skype ID, Yahoo ID, AIM ID, MSN ID, last access, My courses and first access and groups

Show user identity

Any of the following fields may be shown to users with the capability moodle/site:viewuseridentity when searching for users and displaying lists of users.

  • Username (new in 3.7)
  • D number
  • Email address
  • Phone number
  • Mobile phone
  • Department
  • Institution
  • City/town
  • Country

This setting is useful for sites with large number of users, where the likelihood of users with the same name is high.

Locations where user identity fields are shown are as follows:

Tip: Select only one or two fields that are mandatory at your institution. Do not select more than two fields otherwise tables become very wide.

Full name format

See Additional name fields for details, also about the alternative full name format.

Maximum users per page

You can choose here the maximum number of users to be displayed when searching in courses, groups, cohorts etc. The default is 100 but if your Moodle site is very large you can increase the number here.

Enable Gravatar

Gravatar (an abbreviation for globally recognized avatar) is a service for providing globally unique avatars.

If a user has not uploaded a user picture, Moodle will check whether the user's email address has an associated gravatar and if so, will use the gravatar as the user's picture.

Gravatar default image URL

In Moodle 2.3.3 onwards, if gravatars are enabled, an alternative default user picture may be specified. The options are:

If the field is left empty then the theme's default user picture is used.

Unsupported role assignments

Unsupported role assignments are role assignments in contexts that make no sense for that role, such as the course creator role in the course or activity context, or the teacher role in the user context.

Prior to Moodle 2.0, there was no 'Context types where this role may be assigned' setting in the edit role form, and so any role could be assigned in any context. Upon upgrading a site from 1.9, any role assignments in contexts that make no sense for that role are listed as unsupported role assignments.

In general, it is safe to delete all unsupported role assignments. In doing so, the worst that can happen is for a user to be unassigned a custom role; no other data loss will occur.