¿Alguna forma de agregar a grupos programáticamente?

Trust levels is close, but it’s limited to the pre-defined few groups. In my specific use case, I’d need more … basically the idea is creating cohorts based on join date.