# list roles

The `list roles` command lists the current roles of a user for the current working project.

## Syntax

```
list roles [for <user name>]
```

## Parameters

| Parameter     | Description           |
| ------------- | --------------------- |
| `<user name>` | The user's login name |

* If you do not specify the user name, the command will list the roles for the current logged-in user.
* If you do not set the current project, the command will display only system-level roles that have been granted.
* If you set the current project, the output will include both system-level and project-level roles.

## Example

<div align="left"><figure><img src="https://2508510707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foy9ZHXC3vsL0Sr36iw78%2Fuploads%2FnzsShoCE9S6qxffNvhqR%2Flist_roles_screen.png?alt=media&#x26;token=87d99e60-7544-480f-ae7e-225c1ada9a1a" alt=""><figcaption></figcaption></figure></div>
