# Rclone Enhancement: Intelligent Tenant-Based Routing for OneDrive Transfers

**URL:** <https://forum.rclone.org/t/rclone-enhancement-intelligent-tenant-based-routing-for-onedrive-transfers/50108>\
**Category:** Feature\
**Created:** [February 17, 2025, 2:48am UTC](https://forum.rclone.org/t/rclone-enhancement-intelligent-tenant-based-routing-for-onedrive-transfers/50108 "2025-02-17T02:48:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Barnett](https://forum.rclone.org/user_avatar/forum.rclone.org/paul_barnett/32/17115_2.png) [@Paul\_Barnett](https://forum.rclone.org/u/Paul_Barnett)\
**Post date:** [February 17, 2025, 2:48am UTC](https://forum.rclone.org/t/rclone-enhancement-intelligent-tenant-based-routing-for-onedrive-transfers/50108/1 "2025-02-17T02:48:09Z")

</div>

Hey Rclone community,

I want to propose an additional feature that could **intelligently detect tenant boundaries** and **route files efficiently across tenants using existing OneDrive mounts**.

### **Current Issue**

Right now, when transferring files between OneDrive accounts:

- **Same Tenant:** Rclone **downloads and re-uploads** files even though Microsoft allows direct **internal moves** , which would be much faster.
- **Different Tenants:** If transferring across different tenants, there is **no optimized routing** —the file is manually uploaded instead of using the fastest available path.

### **Proposed Solution: Intelligent Tenant-Based Routing**

#### **1. Optimize Transfers Within the Same Tenant**

- If both OneDrive accounts are in the **same Microsoft 365 tenant** , Rclone should detect this and use **Microsoft Graph API’s internal move function** , avoiding unnecessary uploads.

#### **2. Optimize Transfers Between Different Tenants**

If the file needs to move to a **different tenant** , Rclone should:

- **Check for any existing mounts from the destination tenant.**
- If the exact destination account **is not mounted** , find and use **any available account within that tenant** to act as an **intermediary relay**.
- Move the file at high speed within the same tenant first, and then let OneDrive handle the final transfer to the target account.

* * *

### **Example Workflow**

#### **Scenario 1: Moving a File Within the Same Tenant (Fast Transfer via Graph API)**

- **Source:** `aaa.bbb.onmicrosoft.com`
- **Destination:** `bbb.bbb.onmicrosoft.com` (same tenant)
- ✅ **Rclone detects same tenant → Uses OneDrive’s built-in move API → Instant transfer** (no re-uploading needed).

#### **Scenario 2: Moving a File to a Different Tenant Without a Direct Mount**

- **Source:** `aaa.bbb.onmicrosoft.com`
- **Destination:** `aaa.ccc.onmicrosoft.com` (different tenant)
- **Available Accounts in `ccc.onmicrosoft.com`:** `ddd.ccc.onmicrosoft.com`, `eee.ccc.onmicrosoft.com`, `fff.ccc.onmicrosoft.com`
- ✅ **Rclone routes the file to one or multiple of these intermediary accounts**.
- ✅ **From there, the file is transferred at high speed to `aaa.ccc.onmicrosoft.com`** using OneDrive’s internal move API.
- This is still **faster than uploading** directly between different tenants.

* * *

### **Why This is Beneficial**

✅ **Reduces bandwidth usage** by avoiding unnecessary re-uploads.  
✅ **Bypasses API rate limits** by leveraging OneDrive’s internal transfer functionality.  
✅ **Optimizes cross-tenant file movement** without requiring direct access to every OneDrive account.  
✅ **Uses intermediary accounts dynamically** rather than requiring all accounts to be manually added.

---

<div class="post-metadata">

**Author:** ![jcastill](https://forum.rclone.org/user_avatar/forum.rclone.org/jcastill/32/4513_2.png) [@jcastill](https://forum.rclone.org/u/jcastill)\
**Post date:** [February 17, 2025, 5:54am UTC](https://forum.rclone.org/t/rclone-enhancement-intelligent-tenant-based-routing-for-onedrive-transfers/50108/2 "2025-02-17T05:54:25Z")

</div>

Could you explain what is the difference of your post vs using --server-side-across-configs in your command?

> **[Documentation](https://rclone.org/docs/#server-side-copy)**
>
> Rclone Usage

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [April 18, 2025, 5:55am UTC](https://forum.rclone.org/t/rclone-enhancement-intelligent-tenant-based-routing-for-onedrive-transfers/50108/3 "2025-04-18T05:55:12Z")

</div>

Closed on April 18, 2025, 5:55am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
