Recherche du compte puis passage admin :

Pour trouver et afficher les informations du compte correspondant :

Puis pour passer le compte en admin (adapter selon ID ou uuid ou hruid) : 

User.find(123).add_role :admin

Retirer les droits d'admin à un compte : 

Rechercher le compte comme à l'étape 2, puis :

User.find_by(hruid: "prenom.nom.xxxx").remove_role :admin