I think you can do this just by using a plugin called Uncanny Automator it’s awesome! I had been searching for a solution like this for over 3 months. With this plugin, you can create a recipe where you set a trigger and an action. For example: if a user passes an exam, the plugin can automatically mark a specific course or lesson as completed, and much more.
The free version already includes a lot of useful options, and some of you might consider upgrading to the pro version for additional features.
Please let me know if this helps! I’m also still searching for a way to mark courses as complete for users who already passed an exam in the past but didn’t open the lessons, so they aren’t being marked as complete.
You can refer to this topic and reply either here or there. Thanks for your help!