Revision history [back]

None of the answers so far list all the tenants that a user is a member of. I don't think there is a single API that accomplishes this. You would have to list all tenants, then the roles this user has in each tenant. For example:

for tenant in $(keystone tenant-list | awk 'NR>3 && /^|/ { print $2 }')
    echo $tenant
    keystone user-role-list --user foobar --tenant $tenant

(I didn't test this)

Or use the equivalent commands of the new openstack client.