# Sharepoint - There has been an error authenticating the request

**URL:** <https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489>\
**Category:** Help and Support\
**Created:** [August 27, 2024, 5:47pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489 "2024-08-27T17:47:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanhtrung\_toan](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@thanhtrung\_toan](https://forum.rclone.org/u/thanhtrung_toan)\
**Post date:** [August 27, 2024, 5:47pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/1 "2024-08-27T17:47:57Z")

</div>

#### What is the problem you are having with rclone?

We are trying to configure the rclone for file upload to a Sharepoint site. We are guests to this site, and its admins have granted our (guest) account with necessary rights.

We were occasionally getting "There has been an error authenticating the request.". But when we access the site using a web browser (with authentication), rclone will start working again. But this will only last for probably 1 hour before the same issue takes over.

#### Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0

- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-101-generic (x86\_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none

#### Which cloud storage system are you using? (eg Google Drive)

Sharepoint

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone --config=/path/config_file ls remotename:/

```

#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

```auto
[remotename]
type = onedrive
token = XXX
access_scopes = Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All offline_access
drive_id = XXX
drive_type = documentLibrary
auth_url = https://login.microsoftonline.com/XXX/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/XXX/oauth2/v2.0/token
chunk_size = 250Mi

```

#### A log from the command that you were trying to run with the `-vv` flag

```auto
2024/08/27 08:50:05 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "-vv" "--dump" "bodies" "--config=config_file" "ls" "remotename:"]
2024/08/27 08:50:05 DEBUG : Creating backend with remote "remotename:"
2024/08/27 08:50:05 DEBUG : Using config file from "/path/config_file"
2024/08/27 08:50:05 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/08/27 08:50:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/08/27 08:50:05 DEBUG : HTTP REQUEST (req 0xc000981200)
2024/08/27 08:50:05 DEBUG : GET /v1.0/drives/b!dtr0MUkXXXXXXXXXXXXXXXXXXHia82KsNDnEisXXXXXXX/root HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.66.0
Authorization: XXXX
Accept-Encoding: gzip

2024/08/27 08:50:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/08/27 08:50:06 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/08/27 08:50:06 DEBUG : HTTP RESPONSE (req 0xc000981200)
2024/08/27 08:50:06 DEBUG : HTTP/2.0 401 Unauthorized
Cache-Control: private
Client-Request-Id: 8c5c271d-abfb-4b03-8467-c26cfccc04b8
Content-Type: application/json
Date: Tue, 27 Aug 2024 12:50:06 GMT
Request-Id: 8c5c271d-abfb-4b03-8467-c26cfccc04b8
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
Www-Authenticate: Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize", client_id="00000003-0000-0000-c000-000000000000"
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"Canada Central","Slice":"E","Ring":"3","ScaleUnit":"002","RoleInstance":"YT2PEPF00000277"}}

{"error":{"code":"accessDenied","message":"There has been an error authenticating the request."}}
2024/08/27 08:50:06 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/08/27 08:50:06 Failed to create file system for "remotename:": failed to get root: accessDenied: There has been an error authenticating the request.

```

---

<div class="post-metadata">

**Author:** ![thanhtrung\_toan](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@thanhtrung\_toan](https://forum.rclone.org/u/thanhtrung_toan)\
**Post date:** [September 4, 2024, 12:57pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/2 "2024-09-04T12:57:30Z")

</div>

Hi,

Is there a chance that we could have some assistance? Thank you very much.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [September 4, 2024, 1:03pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/3 "2024-09-04T13:03:37Z")

</div>

hi,

possible workaround: access sharepoint over webdav, which does not use a token

that is an old version of rclone, can run `rclone selfupdate`

---

<div class="post-metadata">

**Author:** ![thanhtrung\_toan](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@thanhtrung\_toan](https://forum.rclone.org/u/thanhtrung_toan)\
**Post date:** [September 5, 2024, 2:00pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/4 "2024-09-05T14:00:56Z")

</div>

Hi Jojo,

Unfortunately, we had tried webdav first before going for the Sharepoint route.

With webdav, we were receiving:

X-Ms-Invokeapp: 1; RequireReadOnly

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.  
read metadata failed: 403 FORBIDDEN: 403 Forbidden.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [September 5, 2024, 2:16pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/5 "2024-09-05T14:16:10Z")

</div>

ok, same issue, twice now, using webdav remote, using onedrive remote.  
the issue seems to be the server side, not rclone.

> [@thanhtrung\_toan](#):
>
> its admins have granted our (guest) account with necessary rights.

should contact the admins.

---

<div class="post-metadata">

**Author:** ![thanhtrung\_toan](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@thanhtrung\_toan](https://forum.rclone.org/u/thanhtrung_toan)\
**Post date:** [September 6, 2024, 1:21pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/6 "2024-09-06T13:21:48Z")

</div>

Hi Jojo,

Thank you and noted. I suspected the same problem and wanted to double-check.

T.

---

<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:** [September 9, 2024, 1:22pm UTC](https://forum.rclone.org/t/sharepoint-there-has-been-an-error-authenticating-the-request/47489/7 "2024-09-09T13:22:11Z")

</div>

Closed on September 9, 2024, 1:22pm UTC

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