FivetranでユーザーIDを確認する方法について簡単にまとめます。
前提
Fivetran管理画面ではユーザーIDが直接表示されていなかったので、APIで取得することにしました。
API Key
設定→API Key→Generate API keyでAPI Keyを発行することができます。
ユーザー情報の取得
以下のAPIを使用します。(すべてのユーザー情報を取得)
GET https://api.fivetran.com/v1/users
curlの例
curl -u <API_KEY>:<API_SECRET> \
-H "Content-Type: application/json" \
-X GET "https://api.fivetran.com/v1/users"
json形式でユーザー情報を取得できます。
{
"code": "Success",
"data": {
"items": [
{
"id": "user_id",
"email": "user@email.value",
"given_name": "xxx",
"family_name": "xxx",
"verified": true,
"invited": false,
"picture": null,
"phone": null,
"role": "Account Administrator",
"logged_in_at": "xxx",
"created_at": "xxx",
"active": true
},
{
...
}
]
}
}
参考URL