MCP Control
Компания и доступ · Изменение

Доступ · Должности · Сохранение

access_position_save
Папки документов

Попробуйте три запроса

Подготовить
  1. Вы указываетеPositionid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Доступ / Должности / Сохранение». Для изменения нужны positionId, активность. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
positionId
Параметр
active
Активность
permissions
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Доступ / Должности / Сохранение» с параметром positionId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
positionId
DEMO-101
active
true
allLocations
true
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Доступ / Должности / Сохранение» по исходному ответу. Покажи companyId, positionId. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Configure a native Firebase Position access policy within current protected administrator and OAuth ceilings. Replaces only Access configuration, never native Position fields. Employees with ordinary bound grants use the intersection of their grant and this policy. A current Management Position receives the full company MCP catalog automatically.

Параметры запроса
positionId
Exact existing native Firebase Position identifier. обязательно по схеме · string · до символов 128
active
Whether employees bound to this Position may use its permissions. обязательно по схеме · boolean
permissions
Complete replacement Position permission ceiling, selected from the existing access capability catalog. обязательно по схеме · array · до элементов 512
modules
Enabled modules within the administrator ceiling. обязательно по схеме · array · до элементов 80
integrations
Enabled integrations within the administrator ceiling. обязательно по схеме · array · до элементов 80
allLocations
Whether all company locations are allowed, within the administrator ceiling. обязательно по схеме · boolean
locationIds
Exact permitted company location identifiers. обязательно по схеме · array · до элементов 200
expectedVersion
Exact current policy version; null only for its initial configuration. обязательно по схеме · integer / null
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
companyId
Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
positionId
Native Firebase Position identifier. обязательно по схеме · string · до символов 128
policy
Current protected Position permission ceiling, or null if not configured. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа access_position_save
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "positionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact existing native Firebase Position identifier."
    },
    "active": {
      "type": "boolean",
      "description": "Whether employees bound to this Position may use its permissions."
    },
    "permissions": {
      "maxItems": 512,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "pattern": "^[A-Za-z0-9_.:-]+$"
      },
      "description": "Complete replacement Position permission ceiling, selected from the existing access capability catalog."
    },
    "modules": {
      "maxItems": 80,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9_~:@+.-]+$"
      },
      "description": "Enabled modules within the administrator ceiling."
    },
    "integrations": {
      "maxItems": 80,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9_~:@+.-]+$"
      },
      "description": "Enabled integrations within the administrator ceiling."
    },
    "allLocations": {
      "type": "boolean",
      "description": "Whether all company locations are allowed, within the administrator ceiling."
    },
    "locationIds": {
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9_~:@+.-]+$"
      },
      "description": "Exact permitted company location identifiers."
    },
    "expectedVersion": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Exact current policy version; null only for its initial configuration."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable operation ID. Reuse the exact arguments after an uncertain response."
    }
  },
  "required": [
    "positionId",
    "active",
    "permissions",
    "modules",
    "integrations",
    "allLocations",
    "locationIds",
    "expectedVersion",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Company resolved from the authenticated connection."
    },
    "positionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Native Firebase Position identifier."
    },
    "policy": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "active": {
              "type": "boolean",
              "description": "Whether employees bound to this Position may use its permissions."
            },
            "permissions": {
              "maxItems": 512,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[A-Za-z0-9_.:-]+$"
              },
              "description": "Complete replacement Position permission ceiling, selected from the existing access capability catalog."
            },
            "modules": {
              "maxItems": 80,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$"
              },
              "description": "Enabled modules within the administrator ceiling."
            },
            "integrations": {
              "maxItems": 80,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$"
              },
              "description": "Enabled integrations within the administrator ceiling."
            },
            "allLocations": {
              "type": "boolean",
              "description": "Whether all company locations are allowed, within the administrator ceiling."
            },
            "locationIds": {
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$"
              },
              "description": "Exact permitted company location identifiers."
            },
            "companyId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Authenticated company identity."
            },
            "positionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Existing native Firebase Position identifier."
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Current Position access policy version."
            }
          },
          "required": [
            "active",
            "permissions",
            "modules",
            "integrations",
            "allLocations",
            "locationIds",
            "companyId",
            "positionId",
            "version"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Current protected Position permission ceiling, or null if not configured."
    }
  },
  "required": [
    "companyId",
    "positionId",
    "policy"
  ],
  "additionalProperties": false
}