-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OneDrive for Business auth error #11
Comments
I also use onedrive to sync. There is no error. |
I know. But I have an E5 Microsoft Developer account and what I use is Onedrive for Business not the Onedrive for Personal. |
E5 maybe not useful.I used joplin before,it support many drive to sync but e5 is not useful.If you are admin ,it maybe work,but i dont test it |
Thank you for your report. One possibility is that your business account doesn’t allow this plugin’s oauth2 sign in (A consent from admin needed). Another possibility is that the plugin uses more secure App Folder feature which is a beta api by MSFT and not implemented on for Business account. Of course there are other possibilities that I am not aware of. However, I don’t have any OneDrive for Business account, so I cannot do any further investigation. I will add a comment that the function is only tested working on personal accounts (something like *@outlook.com or *@live.com). |
I can offer my E5 account and I am the admin. Do you have a try to solve it? |
Firstly, thank you, but I do NOT need your account. I have checked out the docs of OneDrive for business, and maybe it's possible to add some supports. So I reopen the issue to remind me of the optimizations in the future (when I have more free time...). But it will not be implemented in these days, sorry. |
|
I get it. |
@fyears thx for your development after all, what i found this time is that after granting admin consent for the account added the remotely-save application, it's running without any exception. that's is, you may need admin consent before authenticating by an admin user via azure active directory. 首先非常感谢你对这个插件的开发。 我尝试了一下,在 grant consent to 登录并添加插件的那个账号之后,一切都可以正常运作。 (可能需要管理员权限,没有添加任何额外权限。也就是说,如果要使用这个插件,可能需要管理员在 AAD 上面授权) |
Noted that if you are an E5 developer account user, it's highly recommended to cover your admin name or account name in case any malicious email attack takes place. |
感谢讨论、分享,我也成功连接 E5 onedrive 了。 我想找到 E5 里头的这个文件夹方便之后备份。 |
TBH, I just put the vault inside the drive, thus after syncing it's still there |
The reason I use the plugin is just to open files in mobile Obsidian without syncing the whole folder into my phone. |
I get it! Thanks for your reply. I will use it more flexible~ |
I have granted admin consent to "remotely-save" in my own M365 tenant so I can use OneDrive for Business but the "Remotely Save" modal window in Obsidian is just stuck on "Connecting to OneDrive... Please DO NOT close this modal." Console shows this:
Any thoughts on what may be different between the people with working Onedrive for Business connections, and myself? |
it's 403, possibly because it's not set up well... |
Confirmed today that as an E3 customer I tried to get remotely-save to work with onedrive, went through the auth process and obsidian sat there trying to process it. At that point I killed it, went into Azure AD > Applications > Enterprise Applications > remotely-save > Permissions and used the Grant Admin Consent button, then opened Obsidian again and ran through the remotely-save onedrive auth process and it now works. |
that's it. the apis are the same and the logics should work between different kinds of onedrive users with Graph api enabled. |
Note to users who use the E5 developer account:If you are using a onedrive (for business) account for synchronization, your files will be uploaded to the shared library of the enterprise after synchronization, and other personnel in the enterprise (group) have permission to see these files. Solution:log in with an administrator account, adjust the administrative access rights of the remotely-save folder, and delete the access rights of other people. This prevents your private files from being accessed by others. 请使用E5开发者账号的用户们注意:如果您使用的是onedrive(for business)的账号进行同步,同步后您的文件会被上传至企业的共享库中,企业(群组)内的其他人员都有权限看到这些文件。 解决方案:使用管理员账户登入,调整remotely-save文件夹的管理访问权限,将其他人员的访问权限删除。这样就可以避免您的私密文件被其他人员访问。 |
Thank you for everyone for the detailed screenshots and steps!!! I would like to add some ref in readme to this issue!!! It seems the key point is granting the permission from admin, and going to sharepoint not onedrive, and paying attention to the permissions visible for others. 谢谢各位的截图和步骤!我在文档更新一下链接!看上去这里有几个注意点:管理员授权、sharepoint vs onedrive、文档可能对其他人可视需要设置。 |
It seem that there is an error about Onedrive for business authorization.
And sorry I type the wrong word "Onedive"
The text was updated successfully, but these errors were encountered: