C'è un modo per aggiungere in modo programmatico ai gruppi?

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.