Компания и доступ · Чтение
Доступ · Разрешение · Просмотр
access_grant_get
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Доступ / Разрешение / Просмотр» выполни чтение в текущей компании. Выведи кратко: companyId, uid.
- companyId
- Поле ответа
- uid
- Поле ответа
- status
- Статус
Уточнить условия
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Для «Доступ / Разрешение / Просмотр» перечисли допустимые параметры uid. Уточни, какие значения нужны для моей задачи, до запроса данных.
- uid
- Параметр чтения
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Доступ / Разрешение / Просмотр» объясни companyId, uid. Отметь отсутствующие значения.
- companyId
- Поле ответа
- uid
- Поле ответа
- status
- Статус
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read a native company member identity and protected MCP grant, including version for changes. Revoked grants remain readable for administration.
Параметры запроса
- uid
- Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
Что вернёт команда
- companyId
- Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
- uid
- Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
- status
- Current protected assignment state. обязательно по схеме · string · варианты active, revoked, not_granted
- grant
- Protected grant, or null before enrollment. обязательно по схеме · object / null
- target
- Existing native identity metadata. необязательно · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"uid": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact Firebase account UID; must have protected membership in the connected company."
}
},
"required": [
"uid"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"$ref": "#/$defs/_mcp0"
},
"uid": {
"$ref": "#/$defs/_mcp1"
},
"status": {
"type": "string",
"enum": [
"active",
"revoked",
"not_granted"
],
"description": "Current protected assignment state."
},
"grant": {
"anyOf": [
{
"type": "object",
"properties": {
"positionId": {
"description": "positionId",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
]
},
"uid": {
"$ref": "#/$defs/_mcp1"
},
"employeeId": {
"$ref": "#/$defs/_mcp2"
},
"active": {
"type": "boolean",
"description": "Whether the protected assignment is enabled."
},
"permissions": {
"maxItems": 512,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$"
},
"description": "Complete replacement permission ceiling; may not exceed current administrator and OAuth scopes."
},
"locationIds": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Exact native locations within the current administrative ceiling."
},
"allLocations": {
"type": "boolean",
"description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
},
"modules": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Complete replacement enabled modules within the caller ceiling."
},
"integrations": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Complete replacement enabled integrations within the caller ceiling."
},
"allowedClientIds": {
"default": null,
"description": "Registered OAuth client allowlist; null means unrestricted within the administrator ceiling.",
"anyOf": [
{
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^[^\\s\\x00-\\x1f\\x7f]+$"
}
},
{
"type": "null"
}
]
},
"companyId": {
"$ref": "#/$defs/_mcp0"
},
"version": {
"default": 0,
"description": "Current optimistic concurrency version.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"revocationVersion": {
"default": 0,
"description": "Monotonic revocation epoch; revoked tokens cannot revive.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"uid",
"employeeId",
"active",
"permissions",
"locationIds",
"allLocations",
"modules",
"integrations",
"allowedClientIds",
"companyId",
"version",
"revocationVersion"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Protected grant, or null before enrollment."
},
"target": {
"description": "Existing native identity metadata.",
"type": "object",
"properties": {
"uid": {
"$ref": "#/$defs/_mcp1"
},
"employeeId": {
"$ref": "#/$defs/_mcp2"
},
"roleId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
],
"description": "Native role metadata; never authority."
},
"locationId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
],
"description": "Native profile location metadata."
}
},
"required": [
"uid",
"employeeId",
"roleId",
"locationId"
],
"additionalProperties": false
}
},
"required": [
"companyId",
"uid",
"status",
"grant"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Company resolved from the authenticated connection."
},
"_mcp1": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact Firebase account UID; must have protected membership in the connected company."
},
"_mcp2": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing native employee UID or protected alias."
}
}
}