{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/posit/main/json-schema/posit-environment-permission-schema.json",
  "title": "EnvironmentPermission",
  "description": "Provides details about the relationship between the execution\nenvironment and the user or group that has access to it.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/posit-environment-permissions-api-openapi.yml#/components/schemas/EnvironmentPermission",
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "The internal identifier for this permission entry.",
      "type": "string"
    },
    "guid": {
      "description": "The identifier for this permission entry.",
      "format": "uuid",
      "type": "string"
    },
    "environment_guid": {
      "description": "The identifier of the execution environment.",
      "format": "uuid",
      "type": "string"
    },
    "user_guid": {
      "description": "The identifier of the user listed in the permission entry.\nThis field will be null if a group is listed.",
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    },
    "group_guid": {
      "description": "The identifier of the group listed in the permission entry.\nThis field will be null if a user is listed.",
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}