Issue with onedrive as webdav (for impersonation purposes)

i've been doing a clone of a list of user's onedrive business (from same office 365 tenent) to box

to get around impersenation issues I simply set it up as a webdav

rclone.conf:

[onedrive]
type = webdav
url = onedrive business folder
vendor = sharepoint
user = admin ID
pass = admin email

I can confirm the ID can access all of the onedrive repositories via URL on the web

for copy/lsf I specify

--webdav-url https://tenent.sharepoint.com/personal/user_domain_com/Documents

for MOST users this works fine, however for maybe 1/4 it does not (nothing copied and nothing listed) afer enabling debug and host headers got the output below, every file comes up item unknown
when looking into the /Documents folder

root of user's onedrive (as webdav) lists fine

rclone v1.62.2

  • os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
  • os/kernel: 10.0.17763.973 Build 17763.973.973 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/Audio.xlsx</D:href><D:propstat><D:prop><D:displayname>Audio.xlsx</D:displayname><D:lockdiscovery/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Fri, 28 Apr 2023 19:24:25 GMT</D:getlastmodified><D:creationdate>2023-03-27T02:18:12Z</D:creationdate><D:getcontentlength>1223816</D:getcontentlength>Repl:repl-uidrid:{E98C4BFA-87C6-466D-A5A4-E5B7C04EC03E}</Repl:repl-uid>Repl:resourcetagrt:E98C4BFA-87C6-466D-A5A4-E5B7C04EC03E@00000000033</Repl:resourcetag><D:getetag>"{E98C4BFA-87C6-466D-A5A4-E5B7C04EC03E},33"</D:getetag>Office:modifiedbyi:0#.f|membership|user@company.com</Office:modifiedby></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/SH%20PTO%20Request%20April.docx</D:href><D:propstat><D:prop><D:displayname>SH PTO Request April.docx</D:displayname><D:lockdiscovery/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Fri, 21 Apr 2023 16:48:47 GMT</D:getlastmodified><D:creationdate>2023-04-21T16:48:47Z</D:creationdate><D:getcontentlength>70819</D:getcontentlength>Repl:repl-uidrid:{D4B7B1EC-F1F7-4618-A3CF-EBE05CCBF161}</Repl:repl-uid>Repl:resourcetagrt:D4B7B1EC-F1F7-4618-A3CF-EBE05CCBF161@00000000002</Repl:resourcetag><D:getetag>"{D4B7B1EC-F1F7-4618-A3CF-EBE05CCBF161},2"</D:getetag>Office:modifiedbyi:0#.f|membership|user@company.com</Office:modifiedby></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/2023%20IE%20Staff%20Compensation%20Reco%20(SH).xlsx</D:href><D:propstat><D:prop><D:displayname>2023 IE Staff Compensation Reco (SH).xlsx</D:displayname><D:lockdiscovery/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Fri, 03 Feb 2023 19:59:09 GMT</D:getlastmodified><D:creationdate>2023-02-03T19:58:01Z</D:creationdate><D:getcontentlength>38373</D:getcontentlength>Repl:repl-uidrid:{C34A2C28-352C-4CCD-96EF-ED2495DB4B0C}</Repl:repl-uid>Repl:resourcetagrt:C34A2C28-352C-4CCD-96EF-ED2495DB4B0C@00000000002</Repl:resourcetag><D:getetag>"{C34A2C28-352C-4CCD-96EF-ED2495DB4B0C},2"</D:getetag>Office:modifiedbyi:0#.f|membership|user@company.com</Office:modifiedby></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/2023%20National%20UEs%20Mkt%20Brks%20and%20Persons.xlsx</D:href><D:propstat><D:prop><D:displayname>2023 National UEs Mkt Brks and Persons.xlsx</D:displayname><D:lockdiscovery/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Mon, 20 Mar 2023 15:30:22 GMT</D:getlastmodified><D:creationdate>2023-03-20T15:30:16Z</D:creationdate><D:getcontentlength>250127</D:getcontentlength>Repl:repl-uidrid:{0756AB38-124C-48AB-AC4B-EE8A10CB1592}</Repl:repl-uid>Repl:resourcetagrt:0756AB38-124C-48AB-AC4B-EE8A10CB1592@00000000002</Repl:resourcetag><D:getetag>"{0756AB38-124C-48AB-AC4B-EE8A10CB1592},2"</D:getetag>Office:modifiedbyi:0#.f|membership|user@company.com</Office:modifiedby></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/Documents/</D:href><D:propstat><D:prop><D:displayname>Documents</D:displayname><D:lockdiscovery/><D:supportedlock/><D:isFolder>t</D:isFolder><D:iscollection>1</D:iscollection><D:ishidden>0</D:ishidden><D:getcontenttype>application/octet-stream</D:getcontenttype><D:getcontentlength>0</D:getcontentlength><D:resourcetype><D:collection/></D:resourcetype>Repl:authoritative-directoryt</Repl:authoritative-directory><D:getlastmodified>Mon, 24 Apr 2023 17:17:58 GMT</D:getlastmodified><D:creationdate>2022-03-06T23:24:33Z</D:creationdate>Repl:repl-uidrid:{14B4F104-0318-4ADE-93F8-FA8EDCDB5B43}</Repl:repl-uid>Repl:resourcetagrt:14B4F104-0318-4ADE-93F8-FA8EDCDB5B43@00000000001</Repl:resourcetag><D:getetag>"{14B4F104-0318-4ADE-93F8-FA8EDCDB5B43},1"</D:getetag></D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>

<D:response><D:href>https://company.sharepoint.com/personal/user_company_com/Documents/comms%20channel%20example.xlsx</D:href><D:propstat><D:prop><D:displayname>comms channel example.xlsx</D:displayname><D:lockdiscovery/><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Mon, 17 Apr 2023 14:52:51 GMT</D:getlastmodified><D:creationdate>2023-04-06T15:53:21Z</D:creationdate><D:getcontentlength>10407</D:getcontentlength>Repl:repl-uidrid:{E664C4AB-36CB-49F5-9FB9-FFCA3B39948C}</Repl:repl-uid>Repl:resourcetagrt:E664C4AB-36CB-49F5-9FB9-FFCA3B39948C@00000000151</Repl:resourcetag><D:getetag>"{E664C4AB-36CB-49F5-9FB9-FFCA3B39948C},151"</D:getetag>Office:modifiedbyi:0#.f|membership|urn%3aspo%3aanon#91035bcf72e1c472dff4c6c8cf74dc833f69b0fcadd5c43156700bd5a8d7ce5d</Office:modifiedby></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response></D:multistatus>
2023/04/28 19:15:49 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/04/28 19:15:49 DEBUG : Item with unknown path received: "/personal/user_company_com/Documents/", "/personal/user_company_com/Documents/"
2023/04/28 19:15:50 DEBUG : Item with unknown path received: "/personal/user_company_com/Documents/filename with spaces.pptx", "/personal/user_company_com/Documents/"

Edit SOLVED for those that run into this: the URL is case sensitive, I had a list of users it was rolling though and there was a capital letter there (pulled from email alias) when set to all lower case this worked fine as with all users

1 Like

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