This plugin will allow you to display a list of Moodle courses for a specific user of Moodle.
Places where you must change the code are highlighted
Here is the widget settings the end user will see. The can add a title to the widget and add the Moodle User Account that they want to display courses for.
Frontend display of courses.