List members of a group Run in API Explorer

GET /v2/orgs/{org_name}/groups/{group_name}/members

List the members (users) that are in a group. If user is owner of the org or has otherwise elevated permissions, they can search by email and the result will also contain emails.

Path parameters

  • org_name string Required

    Name of the organization (namespace).

  • group_name string Required

    Name of the group (team) in the organization.

Query parameters

  • page integer

    Page number (starts on 1).

  • page_size integer

    Number of items (rows) per page.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • count number
    • next string
    • previous string
    • results array[object]
      Hide results attributes Show results attributes object
      • id string

        The UUID trimmed

      • company string
      • date_joined string(date-time)
      • full_name string
      • gravatar_email string
      • gravatar_url string
      • location string
      • profile_url string
      • type string

        Values are User or Org.

      • username string
      • email string
  • 401 application/json

    Authentication failed

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
GET /v2/orgs/{org_name}/groups/{group_name}/members
curl \
 --request GET 'https://hub.docker.com/v2/orgs/myorganization/groups/developers/members' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "count": 1,
  "next": "string",
  "previous": "string",
  "results": [
    {
      "id": "0ab70deb065a43fcacd55d48caa945d8",
      "company": "Docker Inc",
      "date_joined": "2021-01-05T21:06:53.506400Z",
      "full_name": "John Snow",
      "gravatar_email": "string",
      "gravatar_url": "string",
      "location": "string",
      "profile_url": "string",
      "type": "User",
      "username": "dockeruser",
      "email": "dockeruser@docker.com"
    }
  ]
}
Response examples (401)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}