List Users for a Tenant

 
MethodURIDescription
GET/v2.0/tenants/{tenantId}/users​{?marker,​limit}

Lists all users for a tenant.

Normal response codes: 200, 203

Error response codes: identityFault (400, 500, ), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404)

 Request

This table shows the header parameters for the list users for a tenant request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token for an administrative user.

This table shows the URI parameters for the list users for a tenant request:

NameTypeDescription

{tenantId}

​String

The tenant ID.

This operation does not require a request body.

 Response
 

Example 4.31. List Users for a Tenant: XML response

<?xml version="1.0" encoding="UTF-8"?>
<users xmlns="http://docs.openstack.org/identity/api/v2.0">
    <user xmlns="http://docs.openstack.org/identity/api/v2.0"
          enabled="true" email="[email protected]"
          name="jqsmith" id="u1000"/>
    <user xmlns="http://docs.openstack.org/identity/api/v2.0"
          enabled="true" email="[email protected]"
          name="jqsmith" id="u1001"/>
</users>

 

Example 4.32. List Users for a Tenant: JSON response

{
    "users":[{
            "id": "u1000",
            "name": "jqsmith",
            "email": "[email protected]",
            "enabled": true
        },
        {
            "id": "u1001",
            "name": "jqsmith",
            "email": "[email protected]",
            "enabled": true
        }
    ],
    "users_links":[]
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...