Tüm Ürünler
Search
Belge Merkezi

:GetUser

Son Güncelleme:Oct 01, 2026

Bir kullanıcı hakkındaki bilgileri sorgular.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dms:GetUser

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Tid

integer

No

Kiracının kimliği. Kiracı kimliğini almak için GetUserActiveTenant işlemini çağırabilirsiniz.

3***

Uid

string

No

Alibaba Cloud hesabının UID'si. Data Management (DMS) konsolunun sağ üst köşesindeki profil resminin üzerine gelerek UID'nizi görüntüleyebilirsiniz.

22973492647626****

UserId

string

No

Kullanıcının kimliği. Kullanıcının kimliğini sorgulamak için ListUsers işlemini çağırabilirsiniz.

51****

Response elements

Element

Type

Description

Example

object

User

object

Kullanıcı hakkındaki bilgiler.

State

string

Kullanıcının durumu. Geçerli değerler:

  • NORMAL: Kullanıcı normal.

  • DISABLE: Kullanıcı devre dışı.

  • DELETE: Kullanıcı silindi.

NORMAL

CurResultCount

integer

Cari günde sorgulanan satır sayısı.

28

UserId

string

Kullanıcının kimliği.

51****

LastLoginTime

string

Kullanıcının konsola en son giriş yaptığı zaman.

2021-11-08 11:26:21

MaxResultCount

integer

Cari günde sorgulanabilecek maksimum satır sayısı.

10000

ParentUid

integer

Kullanıcının Alibaba Cloud hesabının UID'si.

Not

Bir Alibaba Cloud hesabı bir veya daha fazla RAM kullanıcısı içerebilir.

140692647406****

RoleIdList

object

RoleIds

array

Rol kimliklerinin listesi.

integer

Kullanıcıya atanan rolün kimliği. Geçerli değerler:

  • 1: normal kullanıcı rolü.

  • 2: veritabanı yöneticisi (DBA) rolü.

  • 3: DMS yöneticisi rolü.

  • 4: güvenlik yöneticisi rolü.

  • 6: şema salt okunur kullanıcı rolü.

1

RoleNameList

object

RoleNames

array

Rol adlarının listesi.

string

Kullanıcıya atanan rolün adı. Geçerli değerler:

  • USER: normal kullanıcı.

  • DBA: DBA.

  • ADMIN: DMS yöneticisi.

  • SECURITY_ADMIN: güvenlik yöneticisi.

  • STRUCT_READ_ONLY: şema salt okunur kullanıcı.

USER

NickName

string

Kullanıcının takma adı.

User_NickName

MaxExecuteCount

integer

Cari günde gerçekleştirilebilecek maksimum sorgu sayısı.

2000

CurExecuteCount

integer

Cari günde gerçekleştirilen sorgu sayısı.

3

Mobile

string

Kullanıcının cep telefonu numarası.

Not
  • Kullanıcı konsolda bir cep telefonu numarası belirlemişse sistem bu parametreyi döndürür. Konsolda cep telefonu numarası belirlemek için sağ üst köşedeki profil resminin üzerine gelin ve Bildirim yanındaki Düzenle simgesine tıklayın.

  • Kullanıcı bir cep telefonu numarası belirlememişse sistem bu parametreyi döndürmez.

1389223****

Uid

string

Kullanıcının UID'si.

22275482072787****

Email

string

Bildirimleri almak için kullanılan e-posta adresi.

Not
  • Kullanıcı konsolda bir e-posta adresi belirlemişse sistem bu parametreyi döndürür. Konsolda e-posta adresi belirlemek için sağ üst köşedeki profil resminin üzerine gelin ve Bildirim yanındaki Düzenle simgesine tıklayın.

  • Kullanıcı bir e-posta adresi belirlememişse sistem bu parametreyi döndürmez.

Uesr_email

DingRobot

string

Bildirimleri almak için kullanılan DingTalk sohbet robotu URL'si.

Not
  • Kullanıcı konsolda bir DingTalk sohbet robotu URL'si belirlemişse sistem bu parametreyi döndürür. Konsolda DingTalk sohbet robotu URL'si belirlemek için sağ üst köşedeki profil resminin üzerine gelin ve Bildirim yanındaki Düzenle simgesine tıklayın.

  • Kullanıcı bir DingTalk sohbet robotu URL'si belirlememişse sistem bu parametreyi döndürmez.

https://XXX.dingtalk.com/robot/send?access_token=***

Webhook

string

Bildirimleri almak için kullanılan webhook URL'si.

Not
  • Kullanıcı bir webhook URL'si belirlemişse, DMS bildirimleri belirtilen URL'ye gönderir.

  • Kullanıcı bir webhook URL'si belirlememişse sistem bu parametreyi döndürmez.

http://dms-XXX.aliyun.com:8***

SignatureMethod

string

Webhook URL'si kullanıldığında bağlantıları güvence altına almak için kullanılan imza yöntemi. Geçerli değerler:

  • NONE: imza yok.

  • HMAC_SHA1: HMAC_SHA1.

NONE

NotificationMode

string

Bildirim yöntemi. Sistem bir veya daha fazla değer döndürür. Geçerli değerler:

  • SMS: metin mesajı

  • EMAIL: e-posta.

  • DINGDING: DingTalk.

  • DINGROBOT: DingTalk sohbet robotu.

  • WEBHOOK: webhook.

EMAIL

RequestId

string

İsteğin kimliği.

804BB128-CAFA-5DD0-BA1E-43DDE488****

ErrorCode

string

Hata kodu.

UnknownError

ErrorMessage

string

İstek başarısız olduğunda döndürülen hata mesajı.

Unknown server error

Success

boolean

İsteğin başarılı olup olmadığını gösterir. Geçerli değerler:

  • true: İstek başarılı.

  • false: İstek başarısız.

true

Examples

Success response

JSON format

{
  "User": {
    "State": "NORMAL",
    "CurResultCount": 28,
    "UserId": "51****",
    "LastLoginTime": "2021-11-08 11:26:21",
    "MaxResultCount": 10000,
    "ParentUid": 0,
    "RoleIdList": {
      "RoleIds": [
        1
      ]
    },
    "RoleNameList": {
      "RoleNames": [
        "USER"
      ]
    },
    "NickName": "User_NickName",
    "MaxExecuteCount": 2000,
    "CurExecuteCount": 3,
    "Mobile": "1389223****",
    "Uid": "22275482072787****",
    "Email": "Uesr_email",
    "DingRobot": "https://XXX.dingtalk.com/robot/send?access_token=***",
    "Webhook": "http://dms-XXX.aliyun.com:8***",
    "SignatureMethod": "NONE",
    "NotificationMode": "EMAIL"
  },
  "RequestId": "804BB128-CAFA-5DD0-BA1E-43DDE488****",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "Unknown server error",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.