> ## Documentation Index
> Fetch the complete documentation index at: https://developers.myhero.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve entity owner

> Returns the `CollaboratorUser` who owns the document, project, or workspace identified by `docId`.

Searches across all three collections and returns `null` when the entity is not found.



## OpenAPI

````yaml get /user/owner/{docId}
openapi: 3.1.0
info:
  title: HERO API
  version: current
  description: |-
    The HERO REST API.

    See https://developers.myhero.so for the rendered docs.
servers:
  - url: https://app.myhero.so
security: []
paths:
  /user/owner/{docId}:
    get:
      tags:
        - Users
      summary: Retrieve entity owner
      description: >-
        Returns the `CollaboratorUser` who owns the document, project, or
        workspace identified by `docId`.


        Searches across all three collections and returns `null` when the entity
        is not found.
      operationId: getDocOwner
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: docId
          in: path
      responses:
        '200':
          description: 200 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type:
                      - object
                      - 'null'
                    properties:
                      fbUid:
                        type: string
                      profile:
                        type: object
                        properties:
                          email:
                            type: string
                            format: email
                          firstName:
                            type: string
                          lastName:
                            type: string
                          pictureUrl:
                            type: string
                          avatarId:
                            type: string
                        required:
                          - email
                          - firstName
                    required:
                      - fbUid
                      - profile
                required:
                  - data
        '404':
          description: 404 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: |-
                      Error class name (e.g.

                      ValidationError, NotFound)
                  message:
                    type: string
                    description: Human-readable error message
                  details:
                    type: array
                    items: {}
                required:
                  - error
                  - message
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: HERO personal access token

````