{ "name": "AssignRolesToUser", "fully_qualified_name": "WeaviateApi.AssignRolesToUser@0.1.0", "description": "Assign roles to a user in the system.\n\nUse this tool to assign one or more roles to a specific user, allowing flexibility in user permissions and access control.", "toolkit": { "name": "ArcadeWeaviateApi", "description": null, "version": "0.1.0" }, "input": { "parameters": [ { "name": "user_name", "required": true, "description": "The name or identifier of the user to assign roles to.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The name of the user." }, "inferrable": true, "http_endpoint_parameter_name": "id" }, { "name": "assigned_roles", "required": false, "description": "List of roles to assign to the specified user. Each role should be a string.", "value_schema": { "val_type": "array", "inner_val_type": "string", "enum": null, "properties": null, "inner_properties": null, "description": "The roles that are assigned to the specified user." }, "inferrable": true, "http_endpoint_parameter_name": "roles" }, { "name": "user_type", "required": false, "description": "Specify the user type. Choose 'db' for Weaviate managed users or 'oidc' for users managed by an external OIDC provider.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": [ "db", "oidc" ], "properties": null, "inner_properties": null, "description": "The type of the user. `db` users are managed by Weaviate, `oidc` users are managed by an external OIDC provider." }, "inferrable": true, "http_endpoint_parameter_name": "userType" } ] }, "output": { "description": "Response from the API endpoint 'assignRoleToUser'.", "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": null, "secrets": [ { "key": "WEAVIATE_API_KEY" }, { "key": "WEAVIATE_SERVER_URL" } ], "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 weaviate API." }, "http_endpoint": { "metadata": { "object_type": "http_endpoint", "version": "1.2.0", "description": "" }, "url": "{weaviate_server_url}/v1/authz/users/{id}/assign", "http_method": "POST", "headers": {}, "parameters": [ { "name": "id", "tool_parameter_name": "user_name", "description": "The name of the user.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The name of the user." }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "roles", "tool_parameter_name": "assigned_roles", "description": "The roles that are assigned to the specified user.", "value_schema": { "val_type": "array", "inner_val_type": "string", "enum": null, "properties": null, "inner_properties": null, "description": "The roles that are assigned to the specified user." }, "accepted_as": "body", "required": false, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "userType", "tool_parameter_name": "user_type", "description": "The type of the user. `db` users are managed by Weaviate, `oidc` users are managed by an external OIDC provider.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": [ "db", "oidc" ], "properties": null, "inner_properties": null, "description": "The type of the user. `db` users are managed by Weaviate, `oidc` users are managed by an external OIDC provider." }, "accepted_as": "body", "required": false, "deprecated": false, "default": null, "documentation_urls": [] } ], "documentation_urls": [], "secrets": [ { "arcade_key": "WEAVIATE_API_KEY", "parameter_name": "Authorization", "accepted_as": "header", "formatted_value": "Bearer {authorization}", "description": "", "is_auth_token": false }, { "arcade_key": "WEAVIATE_SERVER_URL", "parameter_name": "weaviate_server_url", "accepted_as": "path", "formatted_value": null, "description": "", "is_auth_token": false } ], "request_body_spec": "{\n \"content\": {\n \"application/yaml\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"roles\": {\n \"type\": \"array\",\n \"description\": \"The roles that are assigned to the specified user.\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"userType\": {\n \"type\": \"string\",\n \"description\": \"The type of the user. `db` users are managed by Weaviate, `oidc` users are managed by an external OIDC provider.\",\n \"enum\": [\n \"db\",\n \"oidc\"\n ]\n }\n }\n }\n },\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"roles\": {\n \"type\": \"array\",\n \"description\": \"The roles that are assigned to the specified user.\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"userType\": {\n \"type\": \"string\",\n \"description\": \"The type of the user. `db` users are managed by Weaviate, `oidc` users are managed by an external OIDC provider.\",\n \"enum\": [\n \"db\",\n \"oidc\"\n ]\n }\n }\n }\n }\n },\n \"required\": true\n}", "use_request_body_schema_mode": false, "validate_request_body_schema": false } }