Development:Anonymous Users
From MoodleDocs
Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please [ http://moodle.org/course/view.php?id=5 join the discussion on moodle.org] or use the page comments.
Objective
To allow users to switch into an anonymous mode when using certain activities eg when posting to a forum, so that the user's real identity cannot be ascertained by other non-privileged users.
= Possible Use Cases
- Activity: for example a forum may be switched into anonymous mode by teacher rendering all posts
- User: a user may choose to participate in an activity anonymously
- Role Play: a teacher may choose to run the whole course in an anonymous mode to allow students to role play
Settings
Global
- Anonymous Mode: On/Off
- Anonymous Images: On/Off
- Enable Course Anonymous Mode: On/Off
Course
- Anonymous Mode: On/Off/Optional
Activity
- Anonymous Mode: On/Off/Optional
User Profile
The following additional fields will be added
- Alias
- Alias image
New Table
The anonymity of the activity will depend upon:
- Global settings - site administrator can switch anonymous mode on/off
- Module settings - teacher can set anonymous to on/off/optional
- User settings - user can switch on/off
Scenarios
There are 3 possible scenarios for an activity:
- Teacher sets an activity to run in "Anonymous Mode". Using the example of a forum, all users who post to the forum will do so anonymously;
- Teacher sets an activity to run in "Optional Anonymous Mode". In this scenario moodle will check the user settings to see if they have enabled anonymity;
- Teacher sets an activity as "Not Anonymous".
User Profile
Proposed new settings in a user's profile:
Field | Type | Description |
---|---|---|
anonymous_name | text | User can enter an anonymous name they would like to use. This field may be disabled depending on global settings |