Aggiunta di utenti ai gruppi tramite automazione del campo personalizzato

Pls the automation can only add users to the secondary group, what should I do if I want to add him to the primary group?