Компания и доступ · Чтение
Доступ · Должности · Просмотр
access_position_get
Попробуйте три запроса
Получить данные
- Вы указываетеPositionid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Доступ / Должности / Просмотр» выполни чтение по выбранной записи (positionId). Выведи кратко: companyId, positionId.
- companyId
- Поле ответа
- positionId
- Поле ответа
- policy
- Поле ответа
Задать параметры
- Вы указываетеPositionid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Доступ / Должности / Просмотр» на учебном примере с positionId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- positionId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Доступ / Должности / Просмотр» объясни companyId, positionId. Отметь отсутствующие значения.
- companyId
- Поле ответа
- positionId
- Поле ответа
- policy
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the protected permission policy of an existing native Firebase Position and its current version. Current Management assignments receive the full company MCP catalog automatically; other positions use their configured Access policy.
Параметры запроса
- positionId
- Exact native Position identifier. обязательно по схеме · string · до символов 128
Что вернёт команда
- 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
Поля и технические схемы

Вход · 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 native Position identifier."
}
},
"required": [
"positionId"
],
"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
}