---
title: "Lookup the account owner for an organization (internal)"
method: POST
path: "/v1/users/lookup_account_owner"
tags: ["Internal"]
---

# Lookup the account owner for an organization (internal)

`POST /v1/users/lookup_account_owner`

## Request

- Base URL: `https://identity-api.paymongo.com`
- URL: `https://identity-api.paymongo.com/v1/users/lookup_account_owner`
- Auth: API key in header `X-Internal-Api-Key`

Returns the user holding the account_owner role for the supplied organization_id, with role-set and any unresolved email_confirmation. Returns 404 when the org has no owner.

## Request body

- UserLookupAccountOwnerRequestDTO
  - `organization_id` string, required

## Response `200`

OK

- object: Standard response containing data and its metadata if any
  - `data` object
    - `attributes` UserLookupAccountOwnerAttributesDTO
      - `accelerator_program_code` string
      - `affiliate_partner` string
      - `confirmed` boolean
      - `contact_number` string
      - `email` string
      - `email_confirmation` string
      - `email_confirmation_updated_at` integer
      - `first_name` string
      - `last_name` string
      - `organization_id` string
      - `roles` string[]
    - `id` string
    - `type` string
  - `has_more` boolean

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/paymongo/apis/identity.md) - [All operations](https://skmtc.dev/paymongo/apis/identity/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/identity/revisions/cc3056164874?raw)
