Get User Information

Get the information of the current user.

Request Format

GET https://{apigw-address}/app-portal-service/v2.0/user/info

Request Parameters (Header)

Name Required or Not Data Type Description
Authorization true String Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token.

Response Parameters

Name Data Type Description
data data struct User information

data Struct

Name Data Type Description
id String User ID
name String User name
domain String Domain name
description String Description of the user
nickName String Nickname of the user
phoneArea String Area code of the user’s registered phone number
phone String User’s registered phone number
email String User’s registered email
createdTime String Time of creating this user account
joinTime String Time of the user joining in the current organization
type Integer User type: 0: Application Portal account, 1: third-party domain account

Sample

Request Sample

GET
https://{apigw-address}/app-portal-service/v2.0/user/info
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}

Return Sample

{
  "code": 200,
  "message": "",
  "data": {
    "id": "yourUserId",
    "name": "portal_demo",
    "domain": "",
    "description": "",
    "nickName": "",
    "phoneArea": "",
    "phone": "",
    "email": "1@163.com",
    "createdTime": "2019-05-27 04:33:30.0",
    "type": 0
  }
}