---
updatedAt: 2026-05-12T10:00:15.000Z
---

# Retrieve users for a client

This operation returns an object containing information about users associated with the specified client.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "User API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/{client_id}/user": {
      "get": {
        "tags": [
          "User API v1.0"
        ],
        "summary": "Retrieve users for a client",
        "description": "This operation returns an object containing information about users associated with the specified client.",
        "operationId": "getUsersForClient",
        "parameters": [
          {
            "name": "client_id",
            "in": "path",
            "description": "Client ID",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "query_username_like",
            "in": "query",
            "description": "Retrieves users with usernames that match part or all of what is given (case insensitive). EXAMPLE: Given a value of 'abc', this parameter would fetch users with usernames of 'abc@example.com', 'abcdef@example.com', and 'foo@abc.com'.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query_first_name_like",
            "in": "query",
            "description": "Retrieves users with first names that match part or all of what is given (case insensitive). EXAMPLE: Given a value of 'Fred', this parameter would fetch users whose first name is 'Fred', 'Frederic', and 'Manfred'.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query_last_name_like",
            "in": "query",
            "description": "Retrieves users with last names that match part or all of what is given (case insensitive). EXAMPLE: Given a value of 'Man', this parameter would fetch users whose last name is 'Man', 'Mann', 'Roman', or 'Romanoff'.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query_last_login_after",
            "in": "query",
            "description": "Retrieves users whose last login to Sentinel occurred after the date and time given. Requires a valid ISO-8601 (UTC/GMT) date format string. EXAMPLE: 'YYYY-MM-DDThh:mm:ssZ' -> '2008-12-12T21:35:59Z'",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "display_additional_attributes",
            "in": "query",
            "description": "This parameter controls if additional user attributes are displayed. PREREQUISITE: format=json",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "0",
              "example": "0",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "display_preferences",
            "in": "query",
            "description": "Displays a list of preferences for this user.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "0",
              "example": "0",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Selects the requested response representation format.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "application/xml",
              "example": "application/json",
              "enum": [
                "application/json",
                "application/xml",
                "csv"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Provides the information on Sentinel users belonging to a particular client.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGetResponseObjList"
                }
              },
              "application/xml": {
                "example": "XML preview is currently not supported."
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "Column headers for data that may be returned using this format.",
                  "example": "Username,Role,Groups,Client"
                }
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "404": {
            "description": "NotFoundResponse indicates a request for a resource that does not exist.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "UserGetResponseObj": {
        "type": "object",
        "properties": {
          "last_name": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "last_viewed_messages": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "client_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "client": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "show_cvss": {
            "type": "string"
          },
          "immediate_severity_email": {
            "type": "string"
          },
          "last_login": {
            "type": "string"
          },
          "monthly_email": {
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "action_items_email": {
            "type": "boolean"
          },
          "daily_email": {
            "type": "boolean"
          },
          "weekly_email": {
            "type": "boolean"
          },
          "expose_hostnames": {
            "type": "boolean"
          },
          "email_preferences": {
            "properties": {
              "sast_pre_scan_success": {
                "type": "number"
              },
              "sast_pre_scan_failure": {
                "type": "number"
              },
              "immediate_credential": {
                "type": "number"
              },
              "sast_scan_success": {
                "type": "number"
              },
              "sast_scan_failure": {
                "type": "number"
              },
              "immediate_schedule": {
                "type": "number"
              },
              "immediate_sca_scan_complete": {
                "type": "number"
              },
              "daily_closed_vuln": {
                "type": "number"
              },
              "immediate_open_vuln": {
                "type": "number"
              },
              "immediate_closed_vuln": {
                "type": "number"
              },
              "weekly_schedule": {
                "type": "number"
              },
              "immediate_manual_scan_complete": {
                "type": "number"
              },
              "weekly_credential": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "company": {
            "type": "string"
          },
          "lockedout": {
            "type": "number"
          },
          "immediate_email": {
            "type": "boolean"
          },
          "href": {
            "type": "string"
          },
          "entity_role_id": {
            "type": "string"
          },
          "has_api_key": {
            "type": "number"
          },
          "zipcode": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "creation_time": {
            "type": "string"
          },
          "fax": {
            "type": "string"
          },
          "job_title": {
            "type": "string"
          },
          "middle_initial": {
            "type": "string"
          },
          "mobile": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "require_mfa": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "UserGetResponseObjList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/UserGetResponseObj"
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": true
  }
}
```