Расчёт выплат · Чувствительное действие
Расчёт выплат · Доступ · Разрешение
payroll_access_grant
Попробуйте три запроса
Подготовить
- Вы указываетеPrincipalid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расчёт выплат / Доступ / Разрешение». Для изменения нужны principalId, role. Покажи объект и ожидаемый эффект до выполнения.
- principalId
- Параметр
- role
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расчёт выплат / Доступ / Разрешение» с параметром role = owner. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- role
- owner
- principalId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расчёт выплат / Доступ / Разрешение» по исходному ответу. Покажи companyId, access. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Assign the existing native Payroll role to an active employee of the current company. Requires both current Control access.manage and protected Payroll access.manage. Does not change OAuth scopes or transfer funds.
Параметры запроса
- principalId
- Native principalId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- role
- Native role value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты owner, admin, manager, viewer
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- access
- Native access value; use the value and type returned by the corresponding service. обязательно по схеме · null
- assignment
- Verified assignment returned by this mutation, including targets outside the first directory page. обязательно по схеме · null
- members
- Native members value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 20
- nextOffset
- Смещение для получения следующей страницы. обязательно по схеме · integer / null
- sha256
- Native sha256 value; use the value and type returned by the corresponding service. обязательно по схеме · string
- nativeLimitReached
- True when the native 500-member response cap was reached; do not infer a complete directory. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"principalId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native principalId value; use the value and type returned by the corresponding service."
},
"role": {
"type": "string",
"enum": [
"owner",
"admin",
"manager",
"viewer"
],
"description": "Native role value; use the value and type returned by the corresponding service."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
}
},
"required": [
"principalId",
"role",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"access": {
"anyOf": [
{
"$ref": "#/$defs/_mcp3"
},
{
"type": "null"
}
],
"description": "Native access value; use the value and type returned by the corresponding service."
},
"assignment": {
"anyOf": [
{
"$ref": "#/$defs/_mcp3"
},
{
"type": "null"
}
],
"description": "Verified assignment returned by this mutation, including targets outside the first directory page."
},
"members": {
"maxItems": 20,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp3"
},
"description": "Native members value; use the value and type returned by the corresponding service."
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Native nextOffset value; use the value and type returned by the corresponding service."
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native sha256 value; use the value and type returned by the corresponding service."
},
"nativeLimitReached": {
"type": "boolean",
"description": "True when the native 500-member response cap was reached; do not infer a complete directory."
}
},
"required": [
"companyId",
"access",
"assignment",
"members",
"nextOffset",
"sha256",
"nativeLimitReached"
],
"additionalProperties": false,
"$defs": {
"_mcp3": {
"type": "object",
"properties": {
"principalId": {
"$ref": "#/$defs/_mcp0"
},
"role": {
"$ref": "#/$defs/_mcp1"
},
"scopes": {
"$ref": "#/$defs/_mcp2"
},
"active": {
"type": "boolean",
"description": "Native active value; use the value and type returned by the corresponding service."
}
},
"required": [
"principalId",
"role",
"scopes",
"active"
],
"additionalProperties": false
},
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native principalId value; use the value and type returned by the corresponding service."
},
"_mcp1": {
"type": "string",
"maxLength": 30,
"description": "Native role value; use the value and type returned by the corresponding service."
},
"_mcp2": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"maxLength": 80,
"pattern": "^[a-z_.]+$"
},
"description": "Native scopes value; use the value and type returned by the corresponding service."
}
}
}