• STRUCTURE
  • DATA
  • MODIFICATION
  • HUMAN

How to manage multi-tenant hierarchies with your AI

Connect Userfront to your AI client to automate the setup and organization of complex tenant trees. Once connected, your agent handles the heavy lifting of structuring your multi-tenant environment.

Ask AI about this page

Short answer

How can I use AI to organize my multi-tenant structure?

Your AI uses Userfront tools to create new tenants, nest child tenants under parents, and update existing structures. You get a fully organized hierarchy without manual database entries. The following breakdown shows how your agent handles these operations.

Where every change lands.

Tenant organization outcomes

The AI maps your requests to specific Userfront actions to keep your hierarchy clean.

STRUCTURE

Nested hierarchies

The AI builds parent and child relationships. You get a logical tree of tenants ready for use.

DATA

Tenant information

Your agent pulls specific tenant details or lists all active tenants. You get the exact data you need for your logic.

MODIFICATION

Updated settings

The AI changes tenant properties or deletes old entries. Your environment stays current with your requirements.

HUMAN

Manual oversight

You decide when to trigger deletions or major structural shifts. The AI waits for your command before making permanent changes.

The workflow

What your AI does when a request arrives.

Your agent translates your natural language instructions into direct Userfront API calls.

  1. Identify the structure

    The AI looks up existing tenants to understand where a new child should live. This ensures the hierarchy stays intact.

    find_tenantsget_tenant
  2. Build the hierarchy

    The agent creates the top-level organization or nests a new tenant under a parent. This builds your multi-tenant tree.

    create_tenantcreate_child_tenant
  3. Modify existing tenants

    If a tenant's configuration changes, the AI updates the record. This keeps your settings in sync with your needs.

    update_tenant
  4. Clean up data

    When a tenant is no longer needed, the AI removes it from the system. This prevents stale data from cluttering your environment.

    delete_tenant

Try it

Copy these to start.

Use these prompts to begin managing your tenants.

Starting points

These are starting points. Replace the specific tenant names or IDs with your actual Userfront data.

Userfront Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_w9r69ZRzyPvwZSONS8FEtiiNvKrk1E6MFpJyL3W0/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Userfront capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "userfront-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_w9r69ZRzyPvwZSONS8FEtiiNvKrk1E6MFpJyL3W0/mcp"
    }
  }
}
Copy into chat04
  • Create a new child tenant under the 'Acme Corp' parent tenant.

  • Find all tenants that belong to the 'Global Logistics' organization.

  • Update the settings for the tenant with ID 'tenant_123' to reflect a new tier.

  • Delete the child tenant named 'Beta Testing Group' from the system.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Userfront once, then ask.

Just link your account once. Your credentials stay encrypted, and you can immediately start managing your hierarchy through any compatible AI client.

Connect Userfront to your AI

FAQ

How this task behaves

  • 01

    Can the AI create tenants automatically?

    Yes, the AI uses the create_tenant and create_child_tenant tools to build new structures based on your instructions.

  • 02

    Will the AI delete my tenants without asking?

    No. While the AI has the capability to delete tenants, it only performs that action when you explicitly tell it to do so.

  • 03

    Can the AI see my user passwords?

    No. The AI only has access to the specific tenant management tools provided in the manifest.

  • 04

    Can the AI change my billing settings?

    No. The available tools are limited to tenant creation, retrieval, updates, and deletion.

  • 05

    How does the AI know which tenant is a parent?

    The AI uses the find_tenants and get_tenant tools to inspect the existing hierarchy before it attempts to create or move tenants.

  • More questions about Userfront? See everything the Userfront Connector can do

Connect Userfront to Claude, Cursor, ChatGPT & more