> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-mcp-bridge-private-server.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Search User Ownership

> Search all ownership assignments for a given user across apps, resources, and entitlements.



## OpenAPI

````yaml https://spec.speakeasy.com/conductor-one/conductorone/my-source-with-code-samples post /api/v1/search/user-ownership
openapi: 3.1.0
info:
  description: The C1 API is a HTTP API for managing C1 resources.
  title: C1 API
  version: 0.1.0-alpha
servers:
  - description: The C1 API server for the current tenant.
    url: https://{tenantDomain}.conductor.one
    variables:
      tenantDomain:
        default: example
        description: The domain of the tenant to use for this request.
security:
  - bearerAuth: []
    oauth: []
paths:
  /api/v1/search/user-ownership:
    post:
      tags:
        - App
      summary: Search User Ownership
      description: >-
        Search all ownership assignments for a given user across apps,
        resources, and entitlements.
      operationId: c1.api.app.v1.AppSearch.SearchUserOwnership
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/c1.api.app.v1.SearchUserOwnershipRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/c1.api.app.v1.SearchUserOwnershipResponse'
          description: >-
            The SearchUserOwnershipResponse message contains a paginated list of
            ownership entries.
      x-codeSamples:
        - lang: go
          label: SearchUserOwnership
          source: "package main\n\nimport(\n\t\"context\"\n\t\"github.com/conductorone/conductorone-sdk-go/pkg/models/shared\"\n\tconductoronesdkgo \"github.com/conductorone/conductorone-sdk-go\"\n\t\"log\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    s := conductoronesdkgo.New(\n        conductoronesdkgo.WithSecurity(shared.Security{\n            BearerAuth: \"<YOUR_BEARER_TOKEN_HERE>\",\n            Oauth: \"<YOUR_OAUTH_HERE>\",\n        }),\n    )\n\n    res, err := s.AppSearch.SearchUserOwnership(ctx, nil)\n    if err != nil {\n        log.Fatal(err)\n    }\n    if res.SearchUserOwnershipResponse != nil {\n        // handle response\n    }\n}"
        - lang: typescript
          label: Typescript (SDK)
          source: >-
            import { ConductoroneSDKTypescript } from
            "conductorone-sdk-typescript";


            const conductoroneSDKTypescript = new ConductoroneSDKTypescript({
              security: {
                bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
                oauth: "<YOUR_OAUTH_HERE>",
              },
            });


            async function run() {
              const result = await conductoroneSDKTypescript.appSearch.searchUserOwnership();

              console.log(result);
            }


            run();
components:
  schemas:
    c1.api.app.v1.SearchUserOwnershipRequest:
      description: >-
        Search for all ownership assignments for a given user. Returns apps,
        resources, and
         entitlements the user owns, each tagged with a UserOwnershipType discriminator.
         Filter by ownership_types to restrict results to specific kinds of ownership.
      properties:
        ownershipTypes:
          description: >-
            Filter results to only include these ownership types. If empty, all
            types are returned.
          items:
            enum:
              - USER_OWNERSHIP_TYPE_UNSPECIFIED
              - USER_OWNERSHIP_TYPE_APP
              - USER_OWNERSHIP_TYPE_RESOURCE
              - USER_OWNERSHIP_TYPE_ENTITLEMENT
            type: string
            x-speakeasy-unknown-values: allow
          type:
            - array
            - 'null'
        pageSize:
          description: Maximum number of results to return per page.
          format: int32
          type:
            - integer
            - 'null'
        pageToken:
          description: Pagination token from a previous response.
          type:
            - string
            - 'null'
        userId:
          description: The ID of the ConductorOne user whose ownership to search.
          type:
            - string
            - 'null'
      title: Search User Ownership Request
      type: object
      x-speakeasy-name-override: SearchUserOwnershipRequest
    c1.api.app.v1.SearchUserOwnershipResponse:
      description: >-
        The SearchUserOwnershipResponse message contains a paginated list of
        ownership entries.
      properties:
        list:
          description: The list of ownership entries for the requested user.
          items:
            $ref: '#/components/schemas/c1.api.app.v1.UserOwnershipEntry'
          type:
            - array
            - 'null'
        nextPageToken:
          description: >-
            Pagination token for the next page of results. Empty when there are
            no more results.
          type:
            - string
            - 'null'
      title: Search User Ownership Response
      type: object
      x-speakeasy-name-override: SearchUserOwnershipResponse
    c1.api.app.v1.UserOwnershipEntry:
      description: |-
        A single ownership entry. Fields are populated based on ownership_type:
         APP — only app_id and app_display_name are set.
         RESOURCE — app_id, app_display_name, resource_type_id, resource_id, and resource_display_name are set.
         ENTITLEMENT — app_id, app_display_name, resource_type_id, entitlement_id, and entitlement_display_name are set.
      properties:
        appDisplayName:
          description: The app display name.
          type:
            - string
            - 'null'
        appId:
          description: The app ID.
          type:
            - string
            - 'null'
        entitlementDisplayName:
          description: The entitlement display name, if applicable.
          type:
            - string
            - 'null'
        entitlementId:
          description: The entitlement ID, if applicable.
          type:
            - string
            - 'null'
        ownershipType:
          description: The type of ownership.
          enum:
            - USER_OWNERSHIP_TYPE_UNSPECIFIED
            - USER_OWNERSHIP_TYPE_APP
            - USER_OWNERSHIP_TYPE_RESOURCE
            - USER_OWNERSHIP_TYPE_ENTITLEMENT
          type:
            - string
            - 'null'
          x-speakeasy-unknown-values: allow
        resourceDisplayName:
          description: The resource display name, if applicable.
          type:
            - string
            - 'null'
        resourceId:
          description: The resource ID, if applicable.
          type:
            - string
            - 'null'
        resourceTypeId:
          description: The resource type ID, if applicable.
          type:
            - string
            - 'null'
      title: User Ownership Entry
      type: object
      x-speakeasy-name-override: UserOwnershipEntry
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    oauth:
      description: >-
        This API uses OAuth2 with the Client Credential flow.

        Client Credentials must be sent in the BODY, not the headers.

        For an example of how to implement this, refer to the
        [c1TokenSource.Token()](https://github.com/ConductorOne/conductorone-sdk-go/blob/3375fe7c0126d17e7ec4e711693dee7b791023aa/token_source.go#L101-L187)
        function.
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /auth/v1/token
      type: oauth2

````