グループのメンバーの一覧を取得する
GET
https://deploygate.com/api/organizations/{ORGANIZATION_NAME}/members
グループに所属しているメンバーのユーザー情報一覧を取得します。
招待中のユーザー
招待状を送付済みであるが、まだDeployGateへの登録を完了していないユーザーは、"inviting": true
が付与され一覧に表示されます。また、その場合のユーザ名はメールアドレスとなります。
Path Params
Name | Type | Required | Description |
---|---|---|---|
ORGANIZATION_NAME | string | true | グループ名 |
Example
curl \
-X GET \
--url "https://deploygate.com/api/organizations/${ORGANIZATION_NAME}/members" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${API_TOKEN}"
Result 200
{
"error": false,
"members": [
{
"type": "User",
"name": "${USER_NAME}",
"display_name": "${USER_DISPLAY_NAME}",
"icon_url": "https://secure.gravatar.com/avatar/${USER_NAME}",
"url": "https://deploygate.com/users/${USER_NAME}"
},
{
"type": "User",
"name": "${EMAIL}",
"display_name": null,
"icon_url": "https://secure.gravatar.com/avatar/default",
"inviting": true,
"url": "https://deploygate.com/users/${EMAIL}"
}
]
}
Result 400
{}