https://moodle.org/plugins/tool_cohortdatabase
This plugin creates site-level cohorts using a connection to an external database.
Install the plugin the same as any standard moodle plugin either via the Moodle plugin directory, or you can use git to clone it into your source:
git clone git@github.com:catalyst/moodle-tool_cohortdatabase.git admin/tool/cohortdatabase
Or install via the Moodle plugin directory:
Then run the Moodle upgrade
If you have issues please log them in github here
https://github.com/catalyst/moodle-tool_cohortdatabase/issues
Please note our time is limited, so if you need commercial support or want to sponsor a new feature then please contact Catalyst IT