# 403 FORBIDDEN WebDev problem

**URL:** <https://forum.rclone.org/t/403-forbidden-webdev-problem/6290>\
**Category:** Help and Support\
**Created:** [July 30, 2018, 10:59am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290 "2018-07-30T10:59:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [July 30, 2018, 10:59am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/1 "2018-07-30T10:59:41Z")

</div>

I’m trying to connect to my corporate group disc. So i can upload things there.  
The site is like [https://corpname.sharepoint.com/sites/groupname/Shared%20Documents/Forms/AllItems.aspx](https://corpname.sharepoint.com/sites/groupname/Shared%20Documents/Forms/AllItems.aspx)  
I give this url while configuration, but i get:

2018/07/30 12:31:32 ERROR : : error listing: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN  
2018/07/30 12:31:32 Failed to lsd: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN

when i try to rclone lsd remote: -vv  
Can anyone help me?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 30, 2018, 1:12pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/2 "2018-07-30T13:12:56Z")

</div>

Looks like you don’t have access as something is configured incorrectly with user name / password perhaps. Can you share the rclone.conf with the passwords and such masked?

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 1, 2018, 7:36am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/3 "2018-08-01T07:36:05Z")

</div>

Where i need to put this URL? I do that this way:

1. Create a OneDrive remote with my oneDrive account where I am added to the private group where the files i want to sync with are placed.
2. Create a webdav and there i put an link like above  
and my one Drive login and password.

My conf files are:

[remote]  
type = onedrive  
token = {“access\_token”:“XXX”,“token\_type”:“Bearer”,“refresh\_token”:XXX"",“expiry”:“XXX”}  
resource\_url = [https://CORP-my.sharepoint.com/](https://CORP-my.sharepoint.com/)

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 1, 2018, 7:36am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/4 "2018-08-01T07:36:38Z")

</div>

[test]  
type = webdav  
url = [https://CORP.sharepoint.com/sites/GROUP\_NAME/Shared%20Documents/Forms/](https://CORP.sharepoint.com/sites/GROUP_NAME/Shared%20Documents/Forms/)  
vendor = sharepoint  
user = [name.sur@comp.com](mailto:name.sur@comp.com)  
pass = my\_sharepoint\_passw  
bearer\_token =

Sorry for 2 posts but i couldn’t add 2 URL in one post as a new user.

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 2, 2018, 10:54am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/5 "2018-08-02T10:54:44Z")

</div>

Can You help? I would really like to know how to do it.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [August 2, 2018, 12:48pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/6 "2018-08-02T12:48:01Z")

</div>

I don’t use Onedrive at all so sorry I don’t see anything offhand. Perhaps someone with a Onedrive could help?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 5, 2018, 8:47am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/7 "2018-08-05T08:47:50Z")

</div>

> [@czech1900](#):
>
> url = [https://CORP.sharepoint.com/sites/GROUP\_NAME/Shared%20Documents/Forms/](https://CORP.sharepoint.com/sites/GROUP_NAME/Shared%20Documents/Forms/)

Sorry for the delay in responsding.

Try cutting the `url` down in your config

```auto
url = https://CORP.sharepoint.com/sites/GROUP_NAME/

```

Does that work?

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 6, 2018, 7:38am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/8 "2018-08-06T07:38:52Z")

</div>

I have to set this url in webDAV or in OneDrive conf? In webDav it didn’t help ☹ Any other idea?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 7, 2018, 2:45pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/9 "2018-08-07T14:45:43Z")

</div>

> [@czech1900](#):
>
> I have to set this url in webDAV or in OneDrive conf? In webDav it didn’t help ☹ Any other idea?

In the WebDAV config.

Try this

```
url = https://CORP.sharepoint.com/sites/GROUP_NAME/Shared Documents/Forms/

```

And see if it makes any difference (So replace `%20` with a space)

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 7, 2018, 2:52pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/10 "2018-08-07T14:52:46Z")

</div>

Still same error 😕  
2018/08/07 16:53:45 ERROR : : error listing: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN  
2018/08/07 16:53:45 Failed to lsd: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 7, 2018, 2:53pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/11 "2018-08-07T14:53:38Z")

</div>

Can you try your original config with `-vv --dump bodies` and paste the output of that?

---

<div class="post-metadata">

**Author:** ![czech1900](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@czech1900](https://forum.rclone.org/u/czech1900)\
**Post date:** [August 7, 2018, 3:00pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/12 "2018-08-07T15:00:20Z")

</div>

X-Msdavext\_error: 917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+ select+the+option+to+login+automatically.  
Is it posible at a CLI and linux?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 7, 2018, 6:39pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/13 "2018-08-07T18:39:34Z")

</div>

> [@czech1900](#):
>
> X-Msdavext\_error: 917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+ select+the+option+to+login+automatically.  
> Is it posible at a CLI and linux?

Hmm, I don't know what is happening here!

Did you try setting up access to your sharepoint account as a "ondrive for business" account? That might work better.

---

<div class="post-metadata">

**Author:** ![Carlos\_Naropa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@Carlos\_Naropa](https://forum.rclone.org/u/Carlos_Naropa)\
**Post date:** [August 10, 2018, 10:09pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/14 "2018-08-10T22:09:57Z")

</div>

I am getting the same thing when trying to use webdav to upload to onedrive.  
type = webdav  
url = [https://place-my.sharepoint.com/personal/tyler\_dey\_place\_edu/documents](https://place-my.sharepoint.com/personal/tyler_dey_place_edu/documents)  
vendor = other  
user = tyler.dey@place.edu  
pass = \*\*\* ENCRYPTED \*\*\*

PS C:\WINDOWS\system32\> rclone -vv ls tyler\_dey:  
2018/08/10 16:10:45 DEBUG : rclone: Version “v1.42-091-g6156bc58” starting with parameters [“C:\WINDOWS\system32\rclone.exe” “-vv” “ls” “tyler\_dey:”]  
2018/08/10 16:10:45 DEBUG : Using config file from “C:\Users\--------\.config\rclone\rclone.conf”  
2018/08/10 16:10:49 ERROR : : error listing: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN  
2018/08/10 16:10:49 Failed to ls: couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN

---

<div class="post-metadata">

**Author:** ![xiaolei\_0125](https://forum.rclone.org/letter_avatar_proxy/v4/letter/x/858c86/32.png) [@xiaolei\_0125](https://forum.rclone.org/u/xiaolei_0125)\
**Post date:** [September 7, 2018, 4:48am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/15 "2018-09-07T04:48:12Z")

</div>

@czech1900 Have you solvled this issue? I have same problem.  
I can’t access /mnt/od1 whenever the “rclone mount” running time is close to 24 hours.

**Error Message**  
ls /mnt/od1/  
ls: reading directory ‘/mnt/od1/’: Input/output error  
The debug error message for rclone mount is :  
rclone[5204]: /: \>ReadDirAll: item=-1, err=couldn’t list files: 403 FORBIDDEN: 403 FORBIDDEN  
X-Msdavext\_error: 917656; Access denied. Before opening files in this location， you must first browse to the website and select the option to login automatically

**This is my comand and webdav sharpoint config**  
rclone mount --dump headers --log-level DEBUG --allow-other od1: /mnt/od1 --syslog --rc  
my rclone config for webdav sharepoint  
[od1]  
type = webdav  
url = [https://xxx-my.sharepoint.com/personal/xxxx\_edu/Documents](https://xxx-my.sharepoint.com/personal/xxxx_edu/Documents)  
vendor = sharepoint  
user = xxxx@xxxx.edu  
pass = xxxxxxx

---

<div class="post-metadata">

**Author:** ![xiaolei\_0125](https://forum.rclone.org/letter_avatar_proxy/v4/letter/x/858c86/32.png) [@xiaolei\_0125](https://forum.rclone.org/u/xiaolei_0125)\
**Post date:** [September 10, 2018, 8:02am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/16 "2018-09-10T08:02:50Z")

</div>

I make a issue in github:  
[rclone mount with sharepoint(webdav), Got 403 FORBIDDEN whenever it running time close to 24 hours](https://github.com/ncw/rclone/issues/2562)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 10, 2018, 6:56pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/17 "2018-09-10T18:56:21Z")

</div>

> [@xiaolei\_0125](#):
>
> I can’t access /mnt/od1 whenever the “rclone mount” running time is close to 24 hours.

Ah, so it did work then stopped working? That probably means the token expired.

If so can you please make a [new issue on github](https://github.com/ncw/rclone/issues/new) about this?

---

<div class="post-metadata">

**Author:** ![xiaolei\_0125](https://forum.rclone.org/letter_avatar_proxy/v4/letter/x/858c86/32.png) [@xiaolei\_0125](https://forum.rclone.org/u/xiaolei_0125)\
**Post date:** [September 11, 2018, 1:35am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/18 "2018-09-11T01:35:13Z")

</div>

@ncw, Thanks for you reply.

Yes, it did work at beginning, then stop working after about 24 hours(close to).

I need to kill `rclone mount` and rerun it make `rclone mount` working again.

I already make a new issue on github for this:  
[rclone mount with sharepoint(webdav), Got 403 FORBIDDEN whenever it running time close to 24 hours](https://github.com/ncw/rclone/issues/2562)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 11, 2018, 2:05pm UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/19 "2018-09-11T14:05:29Z")

</div>

Thanks for making the issue - we’ll fix it there 🙂

---

<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:** [March 4, 2020, 12:46am UTC](https://forum.rclone.org/t/403-forbidden-webdev-problem/6290/20 "2020-03-04T00:46:28Z")

</div>

Closed on March 4, 2020, 12:46am UTC


