Activities ::: mod_attendance
Maintained by Dan Marsden
A plugin that allows an attendance log to be kept. - includes an optional block for easy access to relevant functions.
Latest release:
18226 sites
313 fans
Current versions available: 17

The Attendance activity allows teachers to maintain a record of attendance, replacing or supplementing a paper-based attendance register. It is primarily used in blended-learning environments where students are required to attend classes, lectures and tutorials and allows the teacher to track and optionally provide a grade for the students attendance. The instructor can set the frequency of their classes (# of days per week & length of course) or create specific sessions. 

To take attendance, the instructor clicks on the "Update Attendance" button and is presented with a list of all the students in that course, along with configurable options and comments. The default options provided are: Present, Absent, Late & Excused. Instructors can download the attendance for their course in Excel format or text format.

Sessions can also be configured to allow students to record their own attendance and a range of different reports are available.


This plugin is part of sets Attendance, MoodleCloud.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Dan Marsden (Lead maintainer)
Artem Andreev: Previous maintainer/developer
Dmitry Pupinin: Original author
Please login to view contributors details and/or to contact them

Comments RSS

Vis kommentarer
  • ons. 23. feb. 2022, 04:52
    yes - the best indicator of this for a plugin is whether it receives "early bird" awards. - you should see that this plugin has received a number of them. as far as I am aware attendance works in the current version of 4.0 however I haven't yet created a new icon for attendance to match the new icons, so attendance displays an icon in 4.0 with a grey background but I do have that on my list of things to do - hopefully before 4.0 release comes out.
  • Ricardo Caiado
    lør. 19. mar. 2022, 06:25

    I made a complete backup of a course and it had an "attendance" activity with student information.

    When restoring to another course, I found that the activity information was not preserved.

    Any idea what might have happened with the backup of this information?


    Moodle 3.11.4+
    Attendance 3.11.10 (2021082600)
    PostgreSQL 12
    PHP 7.4
    Ubuntu 20.04
  • man. 28. mar. 2022, 14:50

    after delete user data had errors:

    Exception occurred while calling mod_attendance\privacy\provider::delete_data_for_user.
    This means that plugin mod_attendance did not complete the processing of data. The following exception information may be passed on to the plugin developer:

    moodle_database::get_in_or_equal() does not accept empty arrays

    /mod/attendance/classes/privacy/provider.php(359): moodle_database->get_in_or_equal()
    /mod/attendance/classes/privacy/provider.php(217): mod_attendance\privacy\provider::delete_user_from_session_attendance_log()
    /lib/moodlelib.php(7996): mod_attendance\privacy\provider::delete_data_for_user()
    /privacy/classes/manager.php(578): component_class_callback()
    /privacy/classes/manager.php(611): core_privacy\manager::component_class_callback()
    /admin/tool/dataprivacy/classes/task/process_data_request_task.php(138): core_privacy\manager->delete_data_for_user()
    /lib/cronlib.php(341): tool_dataprivacy\task\process_data_request_task->execute()
    /lib/cronlib.php(198): cron_run_inner_adhoc_task()
    /lib/cronlib.php(76): cron_run_adhoc_tasks()
    /admin/cli/cron.php(178): cron_run()

    Moodle 3.11.6+ (Build: 20220325)
  • tor. 31. mar. 2022, 23:14
    How to have addtional user profile fields in export? I am seeing option to add custom profile fields but not native ones
    I need to add Department field to attendance export.
  • tir. 5. apr. 2022, 05:12
    alguien me puede apoyar explicándome como puedo cambiar y/o agregar en el pluging Attendance mas campos en la opción de exportar campos personalizados, es que no me deja editar el valor puesto por defecto
  • fre. 3. jun. 2022, 15:22

    sorry if the comment is going very long. Among the following activities, we have restricted the access to quiz based on the attendance completion, but we are facing some issues for multiple session attendance completion logic.

    List of activities :

    1. Attendance
    2. Quiz

    Logic 1 :
    since the quiz access is based on attendance activity completion, but the problem here is that Attendance activity gets completed irrespective of whether you mark somebody as present or absent, i.e. attendance gets completed the moment a value is submitted. This is a problem for multiple sessions, for a 2 day training, after taking attendnace on first day itself the activity gets completed and quiz becomes accessible, so we tried logic 2 given below.

    Logic 2 :
    quiz is restricted based on grade received for the attendance activity (80% for pass), still, since every session is created for one day duration and not 2 days together, marking only for one day gives 100% grade and again the activity gets completed giving access to quiz, unless i forcefully mark the other days as absent.

    Also, the attendance activity is getting completed automatically the moment we submit a value, and not on the last date in case of a multiple session course. we have tried both logic 1 & 2, still it is not effective.

    is there any way out ?
  • tir. 7. jun. 2022, 06:15
    @arjun - best place for "questions/help" is the attendance forum: - can you please create a post there? - I don't think what you're asking for is supported, but someone might have creative ideas to help.
  • ons. 13. jul. 2022, 17:30
    Does not work automatically
    attendance. I update cron but it does not mark me student as present.
    I have moodle version 4.0.1
    and attendance version 4.0.3
  • tor. 14. jul. 2022, 05:09
    @Ernesto, best place for questions/help is the attendance forum: - can you please create a post there? - make sure you include screenshots of the status set configuration you are using - the automatic attendance requires your status set config to be correct, but the best place to work that out is in a forum discussion.
  • lør. 16. jul. 2022, 14:38
    Topic #Automatically set when not marked

    HI, I use Attendance ver 4.0.3 on moodle Ver 4.0.1 and found this problem. Not all of my student get status after session is over. Some just get their name colored red with blandk status and other successfully get automatically "unmarked" status that teacher set. Please help. Thank you
  • søn. 17. jul. 2022, 09:37
    @Deny - I haven't seen this before - best place to ask for free help is in the forums though - I see you've posted there too which is great. Hopefully someone else will have some ideas - alternatively you may want to contract your local Moodle Partner to ask them to help diagnose this with you.
  • tir. 16. aug. 2022, 15:15
    @dan I am facing an issue with the calendar event option. I have disabled the checkbox "Create calendar event for session" for the site level and while adding the session manually I can see the checkbox is unticked for the option "Create calendar event for session". However if I import the session through the CSV file and am not given the field calendarevent, all the sessions are created as a calendar event and I can see the checkbox ticked for the bulk import sessions.

    Request you to please check the issue and resolve it. I need to import the sessions with/without the calendar events as well
  • ons. 17. aug. 2022, 06:47
    @Nayana - best place to report bugs/issues with attendance is the issues tracker: - make sure you include information on the Moodle version you are using, and also the version of the attendance plugin you are using (it should be the latest available version for your moodle release.) Pull requests are always welcome, otherwise it may sit there for a while until I have some free volunteer time to work on the attendance plugin - thanks!
  • tor. 22. sep. 2022, 03:18
    Hi, would love to have an attendance session without date. Sometimes, there are sessions that don't need a date, for example, when you have a lot of groups that are having the same event, and they can mark their attendance in different dates, but the admin is using the same session to have a better control with only 1 session.
  • tor. 22. sep. 2022, 06:15
    @Juan - sounds interesting - I don't think anyone has asked for this before - I don't think it's likely I'd spend time as a volunteer adding this feature, but feel free to reach out privately if you would like to fund improvements.
Please login to post comments