Modified MoodleRestEnrol.getMoodleUsersWithCapability. Results now contain courseid and capability.