通過 OpenAPI 查詢成員資訊。
服務存取點與授權資訊
產品 | 資源 | 要求的權限 |
組織管理 | 組織成員 | 唯讀 |
請求文法
GET https://{domain}/oapi/v1/platform/organizations/members/{id}要求標頭
參數 | 類型 | 是否必填 | 描述 | 樣本值 |
x-yunxiao-token | string | 是 | 個人存取權杖。 | pt-0fh3****0fbG_35af****0484 |
請求參數
參數 | 類型 | 位置 | 是否必填 | 描述 | 樣本值 |
id | string | path | 是 | 組織成員 ID。 |
請求樣本
curl -X 'GET' \
'https://{domain}/oapi/v1/platform/organizations/members/{id}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'返回參數
參數 | 類型 | 描述 | 樣本值 |
| - | object | ||
deptIds | array[string] | 所屬組織部門列表。 | ["99d1****6124"] |
string | 郵箱。 | example@example.com | |
id | string | 成員 ID。 | 99d1****6124 |
joined | string | 加入時間。 | 2023-08-31T03:59:16.201Z |
lastUpdated | string | 最後更新時間,等於資料庫的更新時間。 | 2023-08-31T03:59:16.201Z |
name | string | 成員名。 | 樣本名 |
organizationId | string | 組織 ID。 | 99d1****6124 |
roleIds | array[string] | 角色資訊。 | ["99d1****6124"] |
status | string | 成員狀態,可選值:ENABLED,DISABLED,UNDELETED,DELETED,NORMAL_USING,UNVISITED。 | ENABLED |
userId | string | 使用者識別碼。 | 99d1****6124 |
visited | string | 最後訪問時間。 | 2023-08-31T03:59:16.201Z |
返回樣本
{
"deptIds": ["99d1****6124"],
"email": "example@example.com",
"id": "99d1****6124",
"joined": "2023-08-31T03:59:16.201Z",
"lastUpdated": "2023-08-31T03:59:16.201Z",
"name": "樣本名",
"organizationId": "99d1****6124",
"roleIds": ["99d1****6124"],
"status": "ENABLED",
"userId": "99d1****6124",
"visited": "2023-08-31T03:59:16.201Z"
}錯誤碼
訪問錯誤碼中心查看 API 相關錯誤碼。