section> Computing
  • Auto Scaling
  • Bare Metal Server
  • Dedicated Host
  • Elastic Cloud Server
  • FunctionGraph
  • Image Management Service
Network
  • Direct Connect
  • Domain Name Service
  • Elastic IP
  • Elastic Load Balancing
  • Enterprise Router
  • NAT Gateway
  • Private Link Access Service
  • Secure Mail Gateway
  • Virtual Private Cloud
  • Virtual Private Network
  • VPC Endpoint
Storage
  • Cloud Backup and Recovery
  • Cloud Server Backup Service
  • Elastic Volume Service
  • Object Storage Service
  • Scalable File Service
  • Storage Disaster Recovery Service
  • Volume Backup Service
Application
  • API Gateway (APIG)
  • Application Operations Management
  • Application Performance Management
  • Cloud Service Engine
  • Distributed Message Service
  • Simple Message Notification
Data Analysis
  • Cloud Search Service
  • Data Ingestion Service
  • Data Lake Insight
  • Data Warehouse Service
  • DataArts Studio
  • MapReduce Service
  • ModelArts
  • Optical Character Recognition
Container
  • Application Service Mesh
  • Cloud Container Engine
  • Cloud Container Instance
  • Software Repository for Containers
Databases
  • Data Replication Service
  • Distributed Cache Service
  • Distributed Database Middleware
  • Document Database Service
  • GaussDB (for MySQL)
  • GeminiDB
  • Relational Database Service
Management & Deployment
  • Cloud Create
  • Cloud Eye
  • Cloud Trace Service
  • Config
  • Log Tank Service
  • Resource Formation Service
  • Tag Management Service
Security Services
  • Anti-DDoS
  • Cloud Firewall
  • Database Security Service
  • Dedicated Web Application Firewall
  • Host Security Service
  • Identity and Access Management
  • Key Management Service
  • Web Application Firewall
Other
  • Enterprise Dashboard
  • Glossary
  • Marketplace
  • Price Calculator
  • Status Dashboard
APIs
  • REST API
  • API Usage Guidelines
  • Endpoints
Development and Automation
  • SDKs
  • Drivers and Tools
  • Terraform
  • Ansible
  • Cloud Create
Architecture Center
  • Best Practices
  • Blueprints
IaaSComputingAuto ScalingBare Metal ServerDedicated HostElastic Cloud ServerFunctionGraphImage Management ServiceNetworkDirect ConnectDomain Name ServiceElastic IPElastic Load BalancingEnterprise RouterNAT GatewayPrivate Link Access ServiceSecure Mail GatewayVirtual Private CloudVirtual Private NetworkVPC EndpointStorageCloud Backup and RecoveryCloud Server Backup ServiceElastic Volume ServiceObject Storage ServiceScalable File ServiceStorage Disaster Recovery ServiceVolume Backup ServicePaaSApplicationAPI Gateway (APIG)Application Operations ManagementApplication Performance ManagementCloud Service EngineDistributed Message ServiceSimple Message NotificationData AnalysisCloud Search ServiceData Ingestion ServiceData Lake InsightData Warehouse ServiceDataArts StudioMapReduce ServiceModelArtsOptical Character RecognitionContainerApplication Service MeshCloud Container EngineCloud Container InstanceSoftware Repository for ContainersDatabasesData Replication ServiceDistributed Cache ServiceDistributed Database MiddlewareDocument Database ServiceGaussDB (for MySQL)GeminiDBRelational Database ServiceManagementManagement & DeploymentCloud CreateCloud EyeCloud Trace ServiceConfigLog Tank ServiceResource Formation ServiceTag Management ServiceSecuritySecurity ServicesAnti-DDoSCloud FirewallDatabase Security ServiceDedicated Web Application FirewallHost Security ServiceIdentity and Access ManagementKey Management ServiceWeb Application FirewallOtherOtherEnterprise DashboardGlossaryMarketplacePrice CalculatorStatus Dashboard

Identity and Access Management

  • API Usage Guidelines
  • Before You Start
  • API Overview
  • Calling APIs
  • APIs
    • Token Management
    • Access Key Management
    • Region Management
    • Project Management
    • Tenant Management
    • User Management
      • Querying a User List
      • Querying User Details
      • Querying User Details (Recommended)
      • Querying the User Group to Which a User Belongs
      • Querying Users in a User Group
      • Creating an IAM User (Recommended)
      • Creating a User
      • Changing a Password
      • Modifying User Information
      • Modifying User Information (Including Email Address and Mobile Number) as the Administrator
      • Deleting a User
      • Deleting a User from a User Group
      • Sending a Welcome Email to a User
    • User Group Management
    • Permission Management
    • Custom Policy Management
    • Agency Management
    • Security Settings
    • Federated Identity Authentication Management
    • Version Information Management
    • Services and Endpoints
  • Permissions Policies and Supported Actions
  • Appendix
  • Change History
  • API Reference
  • APIs
  • User Management
  • Querying User Details (Recommended)

Querying User Details (Recommended)¶

Function¶

This API can be used by the administrator to query the details about a specified user or used by a user to query their details.

URI¶

GET /v3.0/OS-USER/users/{user_id}

Table 1 URI parameters¶

Parameter

Mandatory

Type

Description

user_id

Yes

String

User ID.

Request Parameters¶

Table 2 Parameters in the request header¶

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

A token with Security Administrator permissions is required if the administrator is requesting to query the details about a specified user.

If an IAM user is requesting to query their details, the user token (no special permission requirements) of the user is required.

Response Parameters¶

Table 3 Parameters in the response body¶

Parameter

Type

Description

user

Object

IAM user information.

Table 4 user¶

Parameter

Type

Description

enabled

Boolean

Enabling status of the user. true (default value) indicates that the user is enabled. false indicates that the user is disabled.

id

String

User ID.

domain_id

String

ID of the account which the user belongs to.

name

String

Username.

links

Object

User resource link information.

xuser_id

String

ID of the user in the external system.

xuser_type

String

Type of the user in the external system.

areacode

String

Country code.

email

String

Email address.

phone

String

Mobile number.

pwd_status

Boolean

Password status. true means that the password needs to be changed, and false means that the password is normal.

update_time

String

Time when the user was last updated.

create_time

String

Time when the user was created.

last_login_time

String

Last login time of the user.

pwd_strength

String

Password strength. The value can be Low, Middle, High, or None.

is_domain_owner

Boolean

Indicates whether the user is the account administrator.

description

String

Description about the user.

Table 5 user.links¶

Parameter

Type

Description

self

String

Resource link.

previous

String

Previous resource link.

next

String

Next resource link.

Example Request¶

GET https://sample.domain.com/v3.0/OS-USER/users/{user_id}

Example Response¶

Status code: 200

The request is successful.

{
  "user" : {
    "pwd_strength" : "Strong",
    "create_time" : "2020-07-08 02:19:03.0",
    "last_login_time" : null,
    "areacode" : "",
    "enabled" : true,
    "domain_id" : "086ba757f90089cf0fe5c000dbe7f...",
    "xuser_id" : "",
    "pwd_status" : false,
    "update_time" : null,
    "phone" : "-",
    "name" : "autotest1",
    "links" : {
      "next" : null,
      "previous" : null,
      "self" : "https://sample.domain.com/v3.0/OS-USER/users/093f75808b8089ba1f6dc000c7cac..."
    },
    "id" : "093f75808b8089ba1f6dc000c7cac...",
    "xuser_type" : "",
    "email" : "",
  }
}

Status Codes¶

Status Code

Description

200

The request is successful.

403

Access denied.

404

The requested resource cannot be found.

405

The method specified in the request is not allowed for the requested resource.

500

Internal server error.

  • Prev
  • Next
last updated: 2025-06-16 13:10 UTC - commit: f6ac98c6862134d40c8d72a4bde028ec51278a18
Edit pageReport Documentation Bug
Page Contents
  • Querying User Details (Recommended)
    • Function
    • URI
    • Request Parameters
    • Response Parameters
    • Example Request
    • Example Response
    • Status Codes
© T-Systems International GmbH
  • Contact
  • Data privacy
  • Disclaimer of liabilitys
  • Imprint