Permissions Needed to use rclone with OneDrive (Teams SharePoint Buckets)

What is the problem you are having with rclone?

I am attempting to Migrate our On-Prem FS to out Teams Buckets. However I don't have access to do so.
I'd like to know exactly what rights I need to request to push the data up to the Teams Buckets.
I have experience with rclone in a Google environment. I migrated my previous employers FS's to Google Shared Drives. There I had Super Admin Rights so that was simple.
I would like to have the proper information to pass onto them.
I know if I just send a screen shot of my error or say I'd like access to do this, it could take a bit. Or just get denied...
I don't' have access to the O365 Admin Portal so I can't even point to where the settings live.
I'm guessing they need to provide me with an OAuth Client/Secret configured to allow me access to certain APIs.

Thank you for any help you can provide.

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

rclone v1.61.1
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.2604 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: cmount

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

O365 (OneDrive)

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

rclone config

The rclone config contents with secrets removed.

I'm stuck in trying to config

Storage> 31

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.

Option region.
Choose national cloud region for OneDrive.
Choose a number from below, or type in your own string value.
Press Enter for the default (global).
 1 / Microsoft Cloud Global
   \ (global)
 2 / Microsoft Cloud for US Government
   \ (us)
 3 / Microsoft Cloud Germany
   \ (de)
 4 / Azure and Office 365 operated by Vnet Group in China
   \ (cn)
region> 1

Edit advanced config?
y) Yes
n) No (default)

Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No

2023/02/28 16:51:24 NOTICE: If your browser doesn't open automatically go to the following link:
2023/02/28 16:51:24 NOTICE: Log in and authorize rclone for access
2023/02/28 16:51:24 NOTICE: Waiting for code...

At this point the Browser Launches, I authenticate with my Account and am told I Need Admin Approval.

hello and welcome to the forum,

could pick one of these scopes. the default scope should work

1 Like

Much appreciated.

Thank you for your time.

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