Change user's role based on assessment

lmccain
Community Explorer

We have figured out how to change the appearance of canvas based on the users role (student, teacher, etc.), but I am curious if there is a way to change a user's role based on an achievement in Canvas.

For instance, we are looking at a mandatory orientation that students would have to take before taking any classes.  One idea is to start all students in a certain role, let's call it pre-students.  We would set it up to display the orientation every time the pre-student logs in, and on every page they navigate to.  Upon completion of the orientation and whatever assessment we would have along with it, the pre-student's role would be changed to student, allowing them to access Canvas without being bothered about the orientation anymore.

We have most of this figured out, just not automatically changing a user's role.  Anyone have an idea of how to do this?

Thanks,

Patrick