---
title: "GetEffectiveOntologyOwners"
method: POST
path: "/textql.rpc.public.patches.OntologyManagementService/GetEffectiveOntologyOwners"
tags: ["OntologyManagementService"]
---

# GetEffectiveOntologyOwners

`POST /textql.rpc.public.patches.OntologyManagementService/GetEffectiveOntologyOwners`

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- TextqlRpcPublicPatchesGetEffectiveOntologyOwnersRequest — Returns the *effective* owners for a directory after walking ancestor OWNERS files: for every role in the org, the resolved permission the role would have on this directory (per `permissionForDirWithRoles`). Use this when you need to compare permissions across paths — the literal GetOntologyOwners only reflects the OWNERS file at the exact path, missing inheritance.
  - `path` string

## Response `200`

Success

- TextqlRpcPublicPatchesGetEffectiveOntologyOwnersResponse
  - `path` string
  - `entries` TextqlRpcPublicPatchesOntologyOwnerEntry[]
    - `roleId` string
    - `permission` 'ONTOLOGY_PERMISSION_UNSPECIFIED' | 'ONTOLOGY_PERMISSION_EXECUTE' | 'ONTOLOGY_PERMISSION_READ' | 'ONTOLOGY_PERMISSION_READ_EXECUTE' | 'ONTOLOGY_PERMISSION_READ_WRITE' | 'ONTOLOGY_PERMISSION_READ_WRITE_EXECUTE'

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/versions/31ce2b0c4427/schema)
