Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?

Figured it out for anyone who wants to know:

function update_school( $post_id ) {
  $post_author_id = get_post_field( 'post_author', $post_id ); // get the post author ID
  $school_name = get_the_author_meta( 'school2', $post_author_id ); // from the post author ID, get the author meta
  $term = term_exists( $school_name, 'school');
  wp_set_post_terms( $post_id, $term, 'school' );

} 

// run function on post save
add_action( 'save_post', 'update_school' );