---
title: "Search user"
method: GET
path: "/api/v4/users/search"
tags: ["Users"]
---

# Search user

`GET /api/v4/users/search`

## Request

- Base URL: `https://api-qa2.enphaseenergy.com`
- URL: `https://api-qa2.enphaseenergy.com/api/v4/users/search`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enphase/apis/commissioning-api/docs/api/v4/users/search/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the user id for the given email id only if the user exists.

## Query parameters

- `email` string

## Response `200`

OK

- object
  - `user_id` integer: The Enlighten ID of the user
  - `company_id` integer: The Enlighten ID of the company that the user belongs to. If the user does not belong to a company, this field will not be present in the response.

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `405`: Method Not Allowed
- `422`: Unprocessable entity. The body contains error information in a hash of errorMessages and an optional errorCode
- `429`: Too Many Requests
- `501`: Not Implemented

---

[API](https://skmtc.dev/enphase/apis/commissioning-api.md) - [All operations](https://skmtc.dev/enphase/apis/commissioning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/enphase/apis/commissioning-api/revisions/73a4001046e2?raw)
