"Can't sign it with a personal account" when setting up OneDrive

What is the problem you are having with rclone?

I try to set up OneDrive using rclone config but get stuck at the step of authorizing. When i try to sign in my personal account, it shows that "You can't sign in with personal account. Use your work or school account instead.""

What is your rclone version (output from rclone version)

rclone v1.54.1

  • os/arch: linux/amd64
  • go version: go1.16

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Manjaro, 64 bit

I followed the instructions to get my client id and secret, but it didn't work. I have read another topic and it said

I choose "Any Azure AD directory - Multitenant and Personal" instead of "Any Azure AD directory - Multitenant" in instruction and it works.

but i did choose "Any Azure AD directory - Multitenant and Personal". I tried "Personal only" but it didn't work.

hello and welcome to the forum,

please update to latest stable.

post the text for the rclone config

I use pacman -S rclone, and it says it is the latest version indeed.
And here is my text from rclone config:

2021/05/16 10:40:06 NOTICE: Config file "/home/jerry/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> OneDrive
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"                                                                                                                        
 2 / Alias for an existing remote
   \ "alias"                                                                                                                          
 3 / Amazon Drive
   \ "amazon cloud drive"                                                                                                             
 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
   \ "s3"                                                                                                                             
 5 / Backblaze B2
   \ "b2"                                                                                                                             
 6 / Box
   \ "box"                                                                                                                            
 7 / Cache a remote
   \ "cache"                                                                                                                          
 8 / Citrix Sharefile
   \ "sharefile"                                                                                                                      
 9 / Compress a remote
   \ "compress"                                                                                                                       
10 / Dropbox
   \ "dropbox"                                                                                                                        
11 / Encrypt/Decrypt a remote
   \ "crypt"                                                                                                                          
12 / Enterprise File Fabric
   \ "filefabric"                                                                                                                     
13 / FTP Connection
   \ "ftp"                                                                                                                            
14 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"                                                                                                           
15 / Google Drive
   \ "drive"                                                                                                                          
16 / Google Photos
   \ "google photos"                                                                                                                  
17 / Hadoop distributed file system
   \ "hdfs"                                                                                                                           
18 / Hubic
   \ "hubic"                                                                                                                          
19 / In memory object storage system.
   \ "memory"                                                                                                                         
20 / Jottacloud
   \ "jottacloud"                                                                                                                     
21 / Koofr
   \ "koofr"                                                                                                                          
22 / Local Disk
   \ "local"                                                                                                                          
23 / Mail.ru Cloud
   \ "mailru"                                                                                                                         
24 / Mega
   \ "mega"                                                                                                                           
25 / Microsoft Azure Blob Storage
   \ "azureblob"                                                                                                                      
26 / Microsoft OneDrive
   \ "onedrive"                                                                                                                       
27 / OpenDrive
   \ "opendrive"                                                                                                                      
28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"                                                                                                                          
29 / Pcloud
   \ "pcloud"                                                                                                                         
30 / Put.io
   \ "putio"                                                                                                                          
31 / QingCloud Object Storage
   \ "qingstor"                                                                                                                       
32 / SSH/SFTP Connection
   \ "sftp"                                                                                                                           
33 / Sugarsync
   \ "sugarsync"                                                                                                                      
34 / Tardigrade Decentralized Cloud Storage
   \ "tardigrade"                                                                                                                     
35 / Transparently chunk/split large files
   \ "chunker"                                                                                                                        
36 / Union merges the contents of several upstream fs
   \ "union"                                                                                                                          
37 / Webdav
   \ "webdav"                                                                                                                         
38 / Yandex Disk
   \ "yandex"                                                                                                                         
39 / Zoho
   \ "zoho"                                                                                                                           
40 / http Connection
   \ "http"                                                                                                                           
41 / premiumize.me
   \ "premiumizeme"                                                                                                                   
42 / seafile
   \ "seafile"                                                                                                                        
Storage> onedive
Bad remote "onedive": didn't find backend called "onedive"
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"                                                                                                                        
 2 / Alias for an existing remote
   \ "alias"                                                                                                                          
 3 / Amazon Drive
   \ "amazon cloud drive"                                                                                                             
 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
   \ "s3"                                                                                                                             
 5 / Backblaze B2
   \ "b2"                                                                                                                             
 6 / Box
   \ "box"                                                                                                                            
 7 / Cache a remote
   \ "cache"                                                                                                                          
 8 / Citrix Sharefile
   \ "sharefile"                                                                                                                      
 9 / Compress a remote
   \ "compress"                                                                                                                       
10 / Dropbox
   \ "dropbox"                                                                                                                        
11 / Encrypt/Decrypt a remote
   \ "crypt"                                                                                                                          
12 / Enterprise File Fabric
   \ "filefabric"                                                                                                                     
13 / FTP Connection
   \ "ftp"                                                                                                                            
14 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"                                                                                                           
15 / Google Drive
   \ "drive"                                                                                                                          
16 / Google Photos
   \ "google photos"                                                                                                                  
17 / Hadoop distributed file system
   \ "hdfs"                                                                                                                           
18 / Hubic
   \ "hubic"                                                                                                                          
19 / In memory object storage system.
   \ "memory"                                                                                                                         
20 / Jottacloud
   \ "jottacloud"                                                                                                                     
21 / Koofr
   \ "koofr"                                                                                                                          
22 / Local Disk
   \ "local"                                                                                                                          
23 / Mail.ru Cloud
   \ "mailru"                                                                                                                         
24 / Mega
   \ "mega"                                                                                                                           
25 / Microsoft Azure Blob Storage
   \ "azureblob"                                                                                                                      
26 / Microsoft OneDrive
   \ "onedrive"                                                                                                                       
27 / OpenDrive
   \ "opendrive"                                                                                                                      
28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"                                                                                                                          
29 / Pcloud
   \ "pcloud"                                                                                                                         
30 / Put.io
   \ "putio"                                                                                                                          
31 / QingCloud Object Storage
   \ "qingstor"                                                                                                                       
32 / SSH/SFTP Connection
   \ "sftp"                                                                                                                           
33 / Sugarsync
   \ "sugarsync"                                                                                                                      
34 / Tardigrade Decentralized Cloud Storage
   \ "tardigrade"                                                                                                                     
35 / Transparently chunk/split large files
   \ "chunker"                                                                                                                        
36 / Union merges the contents of several upstream fs
   \ "union"                                                                                                                          
37 / Webdav
   \ "webdav"                                                                                                                         
38 / Yandex Disk
   \ "yandex"                                                                                                                         
39 / Zoho
   \ "zoho"                                                                                                                           
40 / http Connection
   \ "http"                                                                                                                           
41 / premiumize.me
   \ "premiumizeme"                                                                                                                   
42 / seafile
   \ "seafile"                                                                                                                        
Storage> onedrive
** See help for onedrive backend at: https://rclone.org/onedrive/ **

OAuth Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> <my client id>
OAuth Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> <my secret>
Choose national cloud region for OneDrive.
Enter a string value. Press Enter for the default ("global").
Choose a number from below, or type in your own value
 1 / Microsoft Cloud Global
   \ "global"
 2 / Microsoft Cloud for US Government
   \ "us"
 3 / Microsoft Cloud Germany
   \ "de"
 4 / Azure and Office 365 operated by 21Vianet in China
   \ "cn"
region> cn
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> 
Remote config
Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> 
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=OOsYModI_ve5UNDlJKex2Q
Log in and authorize rclone for access
Waiting for code...

You are using an old version as you need to get it updated:

https://rclone.org/install/

I have updated rclone to v1.55, but still it doesn't work.

rclone v1.55.1
- os/type: linux
- os/arch: amd64
- go/version: go1.16.4
- go/linking: dynamic
- go/tags: none

Are you in China?

 4 / Azure and Office 365 operated by 21Vianet in China

??

Yes, but is this a problem?

No, just trying to understand.

Can you share the steps you are doing?
Are you running rclone authorize on another machine?

Actually i try "global" in the "region" step just now, and I can sign in now. My previous choice is "cn". I don't know why.

Well, it's my mistake. I simply thought I'm in China then chose "cn". However Office 365 personal is not run by 21Vianet. More details in https://docs.microsoft.com/en-us/office365/servicedescriptions/office-365-platform-service-description/office-365-operated-by-21vianet

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