Dell Technologies ECS REST API

Search (SHIFT+S)




Get My Info

GET /user/whoami

This call returns the list of namespaces that the user maps to including the details of the mappings. It also returns a list of roles assigned to this user.


Required Roles

This call has no restrictions.


Response Body

UserInfo

Field Description Type Notes
user
last_login_time Long
common_name String
distinguished_name String
namespace String
roles
role String 0-* Elements
last_time_password_changed String
user_must_reset_password Boolean
user_password_has_expired Boolean
password_expiry_day Integer

Examples

Request
GET https://192.168.0.0:4443/user/whoami HTTP/1.1

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"?>
<user>
  <common_name>root</common_name>
  <distinguished_name>root</distinguished_name>
  <tenant>urn:storageos:TenantOrg:5f10f64c-38a3-49de-b941-8370d7ebf1df:</tenant>
  <roles>
    <role>SECURITY_ADMIN</role>
    <role>SYSTEM_ADMIN</role>
    <role>SYSTEM_MONITOR</role>
    <role>TENANT_ADMIN</role>
  </roles>
  <subtenant_roles>
    <subtenant>
      <tenant>urn:storageos:TenantOrg:4079d91e-df43-4899-97f2-b284adc232ce:</tenant>
      <roles>
        <role>TENANT_ADMIN</role>
      </roles>
    </subtenant>
    <subtenant>
      <tenant>urn:storageos:TenantOrg:68f91da5-cc86-4fe6-af6d-1a7470c981f0:</tenant>
      <roles>
        <role>TENANT_ADMIN</role>
      </roles>
    </subtenant>
  </subtenant_roles>
</user>