corso: v0.13.0 Backup SharePoint Error Access Denied

Hi @ryanfkeepers ,

I’ve tried the currently latest version which is v0.13.0 to do SharePoint backup using its binary executable with this command:

corso backup create sharepoint --site https://XXX.sharepoint.com/sites/XXX \
--aws-access-key none --aws-secret-access-key none \
--azure-tenant-id XXX --azure-client-id XXX --azure-client-secret XXX \
--passphrase XXX --json --retain-progress

And then it raise an error like this:

Connecting to repository:      2s done
Connecting to M365:         done

Error:
	getting root site: error status code received from the API: Access denied

Note that all commands before performing backup such as init, connect, they are all working, except the backup command is having this issue.

And also everything was working fine with the previous version v0.12.0.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@ryanfkeepers , thanks a lot for your great support, I really appreciate it. Thanks!

Hi @vkamra,

These are the log files, I’ve prepared two of them:

I’m using Docker, for both of the log files above the command is exactly the same:

docker run --rm --name corso --network corso-network \
-v $CORSO_BASEDIR:/app/corso \
ghcr.io/alcionai/corso:v0.12.0 \
backup create sharepoint --site https://XXX.sharepoint.com/sites/XXX \
--aws-access-key none --aws-secret-access-key none \
--azure-tenant-id XXX --azure-client-id XXX --azure-client-secret XXX \
--passphrase XXX \
--json --retain-progress \
--log-file /app/corso/corso.log --log-level debug --mask-sensitive-data