User Info:Get User Tenant List

Search (SHIFT+S)



Get User Tenant List

GET /user/tenant

Evaluates the tenancies that this user maps to based on the mappings defined in the Tenants in the system.


Query Parameters

usernamerequired The user name for which to retrieve the tenant list.

Required Roles

This call has no restrictions.


Response Body

Field Description Type Notes
<tenants>
<tenant>     0-* Elements
Valid Values:
  •  none.
<id> Tenant id corresponding to the user's Tenant URI
<user_mapping>    
<domain> String
<attributes>     0-* Elements
<key> String
<value> String 0-* Elements
</attributes>      
<groups> String 0-* Elements
</user_mapping>      
</tenant>      
</tenants>

Examples

Request
GET https://192.168.0.0:4443/user/tenant?username=root

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <tenants>
       <tenant>
            <id>urn:storageos:TenantOrg:dbeb4135-e297-40d9-a5d4-9b40c73bdb4b:</id>
       </tenant>
  </tenants>
Notes: