I currently have a block that syncs enrollment information between a moodle course and an outside application with several different roles. As it is now, the role assigned to a student in the outside application is determined by whether or not he has a particular capability, which is assigned to a specific moodle role. For instance, if the moodle user has the isTeacher capability in moodle, they would map to an instructor in the outside application. I would like to make it possible for administrators to choose which moodle roles map to which role in the outside app, meaning I would like to make it possible within my block settings for an administrator to choose which moodle role gets the specific capabilities that map to the corresponding role in the outer application. This way an administrator could say that the "manager" role in moodle gets the "isTeacher" capability, so any students enrolled as a manager would map to the instructor role in the outside application. Is this possible to do via the API?