user:information¶
Print information about the specified user(s).
Examples¶
user:information someguy,somegaluser:information --mail=someguy@somegal.comuser:information --uid=5user:information someguy --fields=uid,name,created --format=jsonuser:information uinf --uid=$(drush sqlq "SELECT GROUP_CONCAT(entity_id) FROM user__roles WHERE roles_target_id = 'administrator'")
Arguments¶
- [names]. A comma delimited list of user names.
Options¶
- --uid=UID. A comma delimited list of user ids to lookup (an alternative to names).
- --mail=MAIL. A comma delimited list of emails to lookup (an alternative to names).
- --fields=FIELDS. A comma delimited list of fields to show. Use * for all. Defaults to uid,name,mail,roles,user_status for the table and to all fields for json and yaml.
- --format=FORMAT. An alternative output format such as json or yaml. Defaults to table. [possible values: yaml, json]
Global Options¶
- -h, --help. Display help for the given command. When no command is given display help for the list command
- --silent. Do not output any message
- -q, --quiet. Only errors are displayed. All other output is suppressed
- -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- -V, --version. Display this application version
- --ansi. Force (or disable --no-ansi) ANSI output
- --no-ansi. Negate the --ansi option.
- -n, --no-interaction. Do not ask any interactive question
- --url=URL. A base URL (e.g. example.com). Used for building links, selecting a multi-site, etc.
- -e, --env=ENV. The Environment name. [default: prod]
- --no-debug. Switches off debug mode.
Aliases¶
- uinf
- user-information
Legend
- An argument or option with square brackets is optional.
- Any default value is listed at end of arg/option description.
- An ellipsis indicates that an argument accepts multiple values separated by a space.