メインコンテンツまでスキップ

エンタープライズのメンバー一覧を取得する

GET https://deploygate.com/api/enterprises/{ENTERPRISE_NAME}/users

エンタープライズに所属しているユーザー情報一覧を取得します。


Path Params

NameTypeRequiredDescription
ENTERPRISE_NAMEstringtrueエンタープライズ名

Example

curl \
-X GET \
--url "https://deploygate.com/api/enterprises/${ENTERPRISE_NAME}/users" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}"

Result 200

{
"error": false,
"users": [
{
"type": "User",
"name": "${USERNAME}",
"icon_url": "https://example.com/path/to/user.png",
"url": "https://deploygate.com/users/${USERNAME}",
"full_name": "${USERNAME}",
"email": "${EMAIL}",
"role": "administrator" | "manager" | "general user",
"created_at": 1678712616, // unix timestamp
"last_access_at": 1678712616 // unix timestamp
}
]
}