---
updatedAt: 2026-09-02T12:20:31.000Z
agentTools:
  projectIndex: https://docs.foxpass.com/llms.txt
---

# GET /hostgroups/{hostgroupname}/user_members/{username}/

Check if a member is in a host group

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-instructions",
    "version": "3.2"
  },
  "servers": [
    {
      "url": "https://api.foxpass.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/hostgroups/{hostgroupname}/user_members/{username}/": {
      "get": {
        "summary": "GET /hostgroups/{hostgroupname}/user_members/{username}/",
        "description": "Check if a member is in a host group",
        "operationId": "hostgroupshostgroupnamemembersusername-get",
        "parameters": [
          {
            "name": "hostgroupname",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "path",
            "description": "user name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"status\": \"ok\", \"data\": {\"username\": \"aren\", \"expires\": null}}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "username": {
                          "type": "string",
                          "example": "aren"
                        },
                        "expires": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -H 'Authorization: Token API_KEY' https://api.foxpass.com/v1/hostgroups/prod/user_members/aren/"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```