API version: 0.3.0

---

# `user:role:list`

Lists the role assignments of a user together with their issuer and assignment time. Roles which are no longer defined in the instance configuration are listed as well, so that they can be removed.

See [roles and capabilities](/reference/roles-and-capabilities.md) for the concept.

## Help

```bash
php bin/console user:role:list --help
```

```text
Description:
  Lists the roles which are assigned to a user.

Usage:
  user:role:list <user>

Arguments:
  user                  Unique identifier of the user or the user's UUID

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, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "prod"]
      --no-debug        Switch off debug mode.
      --profile         Enables profiling (requires debug).
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

## Example

```bash
php bin/console user:role:list user-role-command-test@localhost.dev
```

```text
    ▄
  ▄▀ ▀▄  Ember Nexus API
   ▀█▀   v0.3.0, production mode

  User Role List

   ======= ======== =========================== ======
    Role    Issuer   Assigned                    Note 
   ======= ======== =========================== ======
    admin   cli      2026-12-04T01:50:21+00:00
   ======= ======== =========================== ======

▶ User 02IiNr0GPQPUXzyfdySPQmGhRINbA4zsxJ7Yb has 1 role assignment(s).
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [user:role:add](/command/user-role-add.md)

Next: [user:role:remove](/command/user-role-remove.md)
