## Rewrapping - Calendly - Airtable - Squareup - PagerDuty - Trello - Miro --------- Co-authored-by: Francisco Liberal <francisco@arcade.dev>
225 lines
9 KiB
JSON
225 lines
9 KiB
JSON
{
|
|
"name": "RemoveUserFromEnterprise",
|
|
"fully_qualified_name": "AirtableApi.RemoveUserFromEnterprise@2.0.0",
|
|
"description": "Unshare a user from all enterprise assets and revoke admin access.\n\nThis tool removes a user's access from all enterprise workspaces, bases, interfaces, and user groups. It also revokes admin access if applicable. It returns lists detailing the unsharing and sharing actions that were executed.",
|
|
"toolkit": {
|
|
"name": "ArcadeAirtableApi",
|
|
"description": null,
|
|
"version": "2.0.0"
|
|
},
|
|
"input": {
|
|
"parameters": [
|
|
{
|
|
"name": "enterprise_account_id",
|
|
"required": true,
|
|
"description": "The ID of the enterprise account from which the user will be removed. Required to specify the enterprise context for user unsharing.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "enterpriseAccountId"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"required": true,
|
|
"description": "The unique identifier of the user to be removed from the enterprise. It is a required string value.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "userId"
|
|
},
|
|
{
|
|
"name": "removal_settings",
|
|
"required": false,
|
|
"description": "JSON object with options: 'isDryRun' (simulate removal), 'removeFromDescendants' (remove from descendant accounts), 'replacementOwnerId' (ID for new owner if user is sole owner).",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"isDryRun": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
},
|
|
"removeFromDescendants": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "If true, removes the user from descendant enterprise accounts as well.\nOnly enterprise accounts with the Enterprise Hub feature enabled have descendant enterprise accounts."
|
|
},
|
|
"replacementOwnerId": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "If the user is the sole owner of any workspaces, you must specify a\nreplacementOwnerId to be added as the new owner of such workspaces. If the\nuser is not the sole owner of any workspaces, replacementOwnerId is optional\nand will be ignored if provided."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "requestBody"
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"description": "Response from the API endpoint 'remove-user-from-enterprise'.",
|
|
"available_modes": [
|
|
"value",
|
|
"error",
|
|
"null"
|
|
],
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"requirements": {
|
|
"authorization": {
|
|
"provider_id": "arcade-airtable",
|
|
"provider_type": "oauth2",
|
|
"id": null,
|
|
"oauth2": {
|
|
"scopes": [
|
|
"enterprise.user:write"
|
|
]
|
|
}
|
|
},
|
|
"secrets": null,
|
|
"metadata": null
|
|
},
|
|
"deprecation_message": null,
|
|
"metadata": {
|
|
"object_type": "api_wrapper_tool",
|
|
"version": "1.1.0",
|
|
"description": "Tools that enable LLMs to interact directly with the airtable API."
|
|
},
|
|
"http_endpoint": {
|
|
"metadata": {
|
|
"object_type": "http_endpoint",
|
|
"version": "1.2.0",
|
|
"description": ""
|
|
},
|
|
"url": "https://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/users/{userId}/remove",
|
|
"http_method": "POST",
|
|
"headers": {},
|
|
"parameters": [
|
|
{
|
|
"name": "enterpriseAccountId",
|
|
"tool_parameter_name": "enterprise_account_id",
|
|
"description": "",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "userId",
|
|
"tool_parameter_name": "user_id",
|
|
"description": "",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "requestBody",
|
|
"tool_parameter_name": "removal_settings",
|
|
"description": "",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"isDryRun": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
},
|
|
"removeFromDescendants": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "If true, removes the user from descendant enterprise accounts as well.\nOnly enterprise accounts with the Enterprise Hub feature enabled have descendant enterprise accounts."
|
|
},
|
|
"replacementOwnerId": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "If the user is the sole owner of any workspaces, you must specify a\nreplacementOwnerId to be added as the new owner of such workspaces. If the\nuser is not the sole owner of any workspaces, replacementOwnerId is optional\nand will be ignored if provided."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": ""
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
}
|
|
],
|
|
"documentation_urls": [],
|
|
"secrets": [
|
|
{
|
|
"arcade_key": "auth_token",
|
|
"parameter_name": "Authorization",
|
|
"accepted_as": "header",
|
|
"formatted_value": "Bearer {authorization}",
|
|
"description": "The OAuth token to use for authentication.",
|
|
"is_auth_token": true
|
|
}
|
|
],
|
|
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"examples\": {\n \"Success Response\": {\n \"description\": \"Success Response\",\n \"summary\": \"Success Response\",\n \"value\": {\n \"replacementOwnerId\": \"usrL2PNC5o3H4lBEi\"\n }\n }\n },\n \"schema\": {\n \"properties\": {\n \"isDryRun\": {\n \"type\": [\n \"boolean\",\n \"null\"\n ],\n \"x-airtable-hide-null\": true\n },\n \"removeFromDescendants\": {\n \"description\": \"If true, removes the user from descendant enterprise accounts as well.\\nOnly enterprise accounts with the Enterprise Hub feature enabled have descendant enterprise accounts.\",\n \"type\": \"boolean\"\n },\n \"replacementOwnerId\": {\n \"anyOf\": [\n {\n \"description\": \"A user ID\",\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"description\": \"If the user is the sole owner of any workspaces, you must specify a\\nreplacementOwnerId to be added as the new owner of such workspaces. If the\\nuser is not the sole owner of any workspaces, replacementOwnerId is optional\\nand will be ignored if provided.\",\n \"x-airtable-hide-null\": true\n }\n },\n \"required\": [],\n \"type\": \"object\"\n }\n }\n }\n}",
|
|
"use_request_body_schema_mode": true,
|
|
"validate_request_body_schema": true
|
|
}
|
|
}
|