user:role
Ajoute/retire un rôle à un utilisateur donné
Utilisation:
drupal user:role [arguments]
urParamètres disponibles
| Paramètre | Détails |
|---|---|
operation | Ajouter ou retirer |
user | L'utilisateur concerné (un seul) |
role | Rôles à ajouter ou à retirer. Merci de fournir le nom machine (un seul) |
Exemples
Add administrator role to the user admin specifying the username and the role
drupal user:role add admin administratorRemove administrator role from the user admin specifying the username and the role
drupal user:role remove admin administrator