What is the problem you are having with rclone?
A problem to access other granted tenant documentLibrary from other tenant account.
https://tenantA.sharepoint.com/sites/someSite (Account from tenant A full access)
https://tenantB.sharepoint/sites/targetSite (Account from tenant A have access to this tenant B sites)
Tenant A account with access full to Tenant A and Tenant B (NOT SITES), but when try to search/put the fullpath of tenant B sites, got denied, error:
Failed to query available site by relative path: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"Requested site could not be found\",\"innerError\":{\"date\":\"2025-05-08T08:43:05\",\"request-id\":\"cc6fe098-a1fd-473f-99cb-7aca1656c4e3\",\"client-request-id\":\"cc6fe098-a1fd-473f-99cb-7aca1656c4e3\"}}}"
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.1
- os/version: fedora 41 (64 bit)
- os/kernel: 6.14.4-200.fc41.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive Business / Sharepoint
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone config authorize "onedrive"
rclone config authorize "onedrive"
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (onedrive).
1 / OneDrive Personal or Business
\ (onedrive)
2 / Root Sharepoint site
\ (sharepoint)
/ Sharepoint site name or URL
3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
\ (url)
4 / Search for a Sharepoint site
\ (search)
5 / Type in driveID (advanced)
\ (driveid)
6 / Type in SiteID (advanced)
\ (siteid)
/ Sharepoint server-relative path (advanced)
7 | E.g. /teams/hr
\ (path)
config_type> 3
Option config_site_url.
Site URL
Examples:
- "mysite"
- "https://XXX.sharepoint.com/sites/mysite"
- "https://XXX.sharepoint.com/teams/ID"
Enter a value.
config_site_url> https://tenantB.sharepoint.com/sites/TargetSitesB
Failed to query available site by relative path: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"Requested site could not be found\",\"innerError\":{\"date\":\"2025-05-08T08:43:05\",\"request-id\":\"cc6fe098-a1fd-473f-99cb-7aca1656c4e3\",\"client-request-id\":\"cc6fe098-a1fd-473f-99cb-7aca1656c4e3\"}}}"
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[tenantB]
type = onedrive
token = XXX
drive_id = XXX # this is empty, not able to get
drive_type = documentLibrary #manually configure
A log from the command that you were trying to run with the -vv
flag
no useful log when run with -vvv
2025/05/08 16:02:45 DEBUG : tenantB: config in: state="url_end", result="https://tenantB.sharepoint.com/sites/targetSitesB"
2025/05/08 16:02:45 DEBUG : tenantB: Loaded invalid token from config file - ignoring
2025/05/08 16:02:46 DEBUG : Saving config "token" in section "ms" of the config file
2025/05/08 16:02:46 DEBUG : Keeping previous permissions for config file: -rwxrwxrwx
2025/05/08 16:02:46 DEBUG : tenantB: Saved new token in config file
2025/05/08 16:02:46 DEBUG : tenantB: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query available site by relative path: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"Requested site could not be found\",\"innerError\":{\"date\":\"2025-05-08T09:02:46\",\"request-id\":\"ee26e392-a450-45d3-b29e-525d3d6f0e24\",\"client-request-id\":\"ee26e392-a450-45d3-b29e-525d3d6f0e24\"}}}" Result:}, err=<nil>
Failed to query available site by relative path: HTTP error 404 (404 Not Found) returned body: "{\"error\":{\"code\":\"itemNotFound\",\"message\":\"Requested site could not be found\",\"innerError\":{\"date\":\"2025-05-08T09:02:46\",\"request-id\":\"ee26e392-a450-45d3-b29e-525d3d6f0e24\",\"client-request-id\":\"ee26e392-a450-45d3-b29e-525d3d6f0e24\"}}}"
2025/05/08 16:02:46 DEBUG : tenantB: config in: state="choose_type", result=""
2025/05/08 16:02:46 DEBUG : tenantB: config out: out=&{State:choose_type_done Option:onedrive OAuth:<nil> Error: Result:}, err=<nil>
2025/05/08 16:02:46 DEBUG : tenantB: config: reading config parameter "config_type"
The real question
Does rclone support cross tenant access?