Ajouter des utilisateurs aux groupes via l'automatisation de champ personnalisé

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?