---
updatedAt: 2026-10-16T12:34:33.000Z
---

# Retrieve user information

This operation returns an object containing information about a particular user, specified by the User ID.

# OpenAPI definition

```json
{
  "components": {
    "responses": {
      "BadRequestResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessage"
            }
          }
        },
        "description": "BadRequestResponse indicates a request with invalid parameters"
      },
      "ForbiddenResponse": {
        "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized"
      },
      "GenericError": {
        "description": "GenericError generic error"
      },
      "UnauthorizedResponse": {
        "description": "UnauthorizedResponse signals an unauthorized API access"
      },
      "UserResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/userSwagger"
            }
          }
        },
        "description": "UserResponse provides user information for a single requested user"
      }
    },
    "schemas": {
      "AssociatedAsset": {
        "description": "AssociatedAsset holds information about an associated asset",
        "properties": {
          "assetID": {
            "format": "int64",
            "type": "integer"
          },
          "byClient": {
            "type": "boolean"
          },
          "byGroup": {
            "type": "boolean"
          },
          "byUser": {
            "type": "boolean"
          },
          "clientID": {
            "format": "int64",
            "type": "integer"
          },
          "directlyAssociatedRole": {
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "directlyAssociatedRoleName": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "AssociatedGroup": {
        "description": "AssociatedGroup holds information about an associated group",
        "properties": {
          "byClient": {
            "type": "boolean"
          },
          "clientID": {
            "format": "int64",
            "type": "integer"
          },
          "direct": {
            "type": "boolean"
          },
          "directlyAssociatedRole": {
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "directlyAssociatedRoleName": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "format": "int64",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "AssociatedRole": {
        "description": "AssociatedRole holds numeric id and name for roles associated with users",
        "properties": {
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ClientAdmin": {
        "description": "ClientAdmin is the list of clients that a given user is admin for",
        "properties": {
          "clientID": {
            "format": "int64",
            "type": "integer"
          },
          "clientName": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EmailFreq": {
        "description": "EmailFreq holds info about the users email frequency",
        "properties": {
          "daily": {
            "type": "boolean"
          },
          "monthly": {
            "type": "boolean"
          },
          "weekly": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EmailPreferences": {
        "description": "EmailPreferences holds the email preference data for a user",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorMessage": {
        "description": "ErrorMessage describes the error",
        "properties": {
          "code": {
            "format": "int64",
            "type": "integer"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "userSwagger": {
        "description": "userSwagger is data returned when a single user is requested",
        "properties": {
          "associatedAssets": {
            "items": {
              "$ref": "#/components/schemas/AssociatedAsset"
            },
            "type": "array"
          },
          "associatedGroups": {
            "items": {
              "$ref": "#/components/schemas/AssociatedGroup"
            },
            "type": "array"
          },
          "associatedRoles": {
            "items": {
              "$ref": "#/components/schemas/AssociatedRole"
            },
            "type": "array"
          },
          "canDelete": {
            "type": "boolean"
          },
          "canEdit": {
            "type": "boolean"
          },
          "client": {
            "properties": {
              "id": {
                "format": "int64",
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "clientAdminList": {
            "items": {
              "$ref": "#/components/schemas/ClientAdmin"
            },
            "type": "array"
          },
          "createdBy": {
            "nullable": true,
            "type": "string"
          },
          "createdDate": {
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "dataPrivacy": {
            "type": "boolean"
          },
          "emailFrequency": {
            "$ref": "#/components/schemas/EmailFreq"
          },
          "emailPreferences": {
            "items": {
              "$ref": "#/components/schemas/EmailPreferences"
            },
            "type": "array"
          },
          "firstName": {
            "type": "string"
          },
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "jobTitle": {
            "nullable": true,
            "type": "string"
          },
          "lastLogin": {
            "format": "int64",
            "nullable": true,
            "type": "integer"
          },
          "lastName": {
            "type": "string"
          },
          "mobile": {
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "vulnEmails": {
            "type": "boolean"
          }
        },
        "type": "object"
      }
    }
  },
  "info": {
    "license": {
      "name": "(c) Copyright 2022 WhiteHat Security"
    },
    "title": "Access Control Management API",
    "version": "2.0.0"
  },
  "openapi": "3.0.1",
  "paths": {
    "/api/users/{id}": {
      "get": {
        "description": "This operation returns an object containing information about a particular user, specified by the User ID.",
        "operationId": "getUserInputSwagger",
        "parameters": [
          {
            "description": "User ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "int64",
              "type": "integer"
            },
            "x-go-name": "ID"
          },
          {
            "description": "Fields allows the user to specify optional fields returned in the user response\nSupported values:\n'client' returns client info for the user\n'associatedCounts' returns the number of groups and assets assigned to the user\n'associatedAssets' returns the assetID, clientID, and how assets are associated with the user\n'associatedGroups' returns the group id, clientID, and how the groups are associated with the user\n'associatedRoles' returns role ids and names assigned to the user",
            "explode": false,
            "in": "query",
            "name": "fields",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/UserResponse"
          },
          "400": {
            "$ref": "#/components/responses/BadRequestResponse"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedResponse"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenResponse"
          },
          "500": {
            "$ref": "#/components/responses/GenericError"
          }
        },
        "summary": "Retrieve user information",
        "tags": [
          "Access Control Management API v2.0"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com/"
    }
  ],
  "tags": [
    {
      "name": "Access Control Management API v2.0"
    }
  ],
  "x-explorer-enabled": false
}
```