Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to retrieve a list of tenants/projects for user from keystone API

Using the keystone API for any user (i.e. not necessarily admin), is it possible to view the list of projects/tenants that they are members of i.e. to recreate the little dropdown that you see in horizon which lets you switch between your assigned projects?

Getting an unscoped token (is this right?):  POST

    "auth": {
        "identity": {
            "methods": [
            "password": {
                "user": {
                    "domain": {
                        "name": "default"
                    "name": "my-ks-user",
                    "password": "my-ks-passwd"

Returns the id for my default tenant/project, but doesn't seem to give the means of listing the other projects I am a member of? e.g. GET to /projects, etc seems to yield unauthorized - what am I missing here.. is it even possible?