---
title: "GetOrganizationSecurityPolicyExecutables"
method: POST
path: "/gitpod.v1.OrganizationService/GetOrganizationSecurityPolicyExecutables"
tags: ["gitpod.v1.OrganizationService"]
---

# GetOrganizationSecurityPolicyExecutables

`POST /gitpod.v1.OrganizationService/GetOrganizationSecurityPolicyExecutables`

Resolves the organization's assigned default SecurityPolicy and returns
 only its executable rules plus the runtime safelist. No default means no rules.

## Request body

- GitpodV1GetOrganizationSecurityPolicyExecutablesRequest
  - `organizationId` string, uuid, required

## Response `200`

Success

- GitpodV1GetOrganizationSecurityPolicyExecutablesResponse
  - `executables` GitpodV1OrganizationSecurityPolicyExecutables, required
    - `legacyMigrationPending` boolean
    - `legacyMigrationToken` string, nullable — legacy_migration_token binds the loaded legacy/default snapshot. Save must return it unchanged when setting the executable rules.
    - `rules` GitpodV1SecurityPolicySpecExecutablePolicyRule[]
      - `effect` 'EFFECT_UNSPECIFIED' | 'EFFECT_ALLOW' | 'EFFECT_BLOCK' | 'EFFECT_AUDIT'
      - `path` string — path is either an absolute executable path, such as /usr/bin/curl, or a bare executable name, such as npx. Bare names are expanded by runtime discovery. Surrounding whitespace is ignored. Empty or whitespace-only selectors and relative paths with directory separators are invalid. Enforcement uses executable content hashes, so different paths with identical content share one runtime decision and block wins conflicts.
    - `safelist` string[]

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
