Ask Your Question

Revision history [back]

Try

openstack role list --user <user_id> --project <--project_id>

There is nothing called user-role-list, it is always user-role-list for a project in keystoneclient

Try

openstack role list --user <user_id> --project <--project_id>

There is nothing called user-role-list, it is always user-role-list for a project in keystoneclient

/opt/stack$ openstack help role list 
usage: openstack role list [-h] [-f {csv,html,json,table,yaml}] [-c COLUMN]
                           [--max-width <integer>]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--domain <domain> | --project <project>]
                           [--user <user> | --group <group>]
List roles

optional arguments:
  -h, --help            show this help message and exit
  --domain <domain>     Filter roles by <domain> (name or ID)
  --project <project>   Filter roles by <project> (name or ID)
  --user <user>         Filter roles by <user> (name or ID)
  --group <group>       Filter roles by <group> (name or ID)

Try

openstack role list --user <user_id> --project <--project_id>

There is nothing called user-role-list, it is always user-role-list for a project in keystoneclient

Update 1:

You need to export environment variable to list v3 apis available

export OS_IDENTITY_API_VERSION=3

/opt/stack$ export OS_IDENTITY_API_VERSION=3
/opt/stack$ openstack help role list 
usage: openstack role list [-h] [-f {csv,html,json,table,yaml}] [-c COLUMN]
                           [--max-width <integer>]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--domain <domain> | --project <project>]
                           [--user <user> | --group <group>]
List roles

optional arguments:
  -h, --help            show this help message and exit
  --domain <domain>     Filter roles by <domain> (name or ID)
  --project <project>   Filter roles by <project> (name or ID)
  --user <user>         Filter roles by <user> (name or ID)
  --group <group>       Filter roles by <group> (name or ID)