About a year and half ago, I wrote an article about using Terraform to manage teams in a GitHub Enterprise with Enterprise Managed Users enabled. Here’s the link GitHub/EMU/Terraform.