Is there an existing module or technique to sync Civi contacts and Drupal8 roles based on their relationships to a Civi Organization? Assume the contacts have linked Drupal user accounts.
There appear to be modules for syncing Memberships to Drupal roles (civicrm_member_roles) or to static Civi Groups to Drupal Roles (civicrm_group_roles), but I can't find a corresponding "civicrm_related_contacts_roles" module. (I'm aware that these modules were designed for Drupal7, but I've been able to fit the membership sync module to an existing Drupal8 installation, so I'm hoping the same is possible if a module exists for relationships)
Ideally, such a module would let me specify a Civi Contact (I guess we can ignore whether it's an Org, Ind, or Household), a Civi relationship type that an Individual might be able to have with that Contact, and a Drupal role. Then anyone who is related in that way to that Contact would automatically be assigned to the Drupal role.
Any existing modules or code examples?