-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
API Bug: OneDrive Business Shared Folders: Unable to sync shared folders, shared from outside organisation #966
Comments
Opened API Issue: OneDrive/onedrive-api-docs#1301 |
Also commented here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/7858 |
The issue seem to remain. |
This is a known issue, hence why I opened this issue ticket to tracking and visibility. This is also why it is listed as a known issue here: https://github.com/abraunegg/onedrive/blob/master/docs/BusinessSharedFolders.md#known-issues The 'master' codebase does not have the required fix to handle external organisation shared folders, although there is a PR which contains a potential fix. To assist with testing the current fix, please can you test the following PR which may resolve the issue, however in my testing the OneDrive API issue still exists - as in, whilst shared folders are now listed, accessing / syncing them fails as the OneDrive API does not authorise the access correctly. This could be, for my case, due to using a 'developer' Business account + shared folder from a commercial organisation. The API failure might be legitimate in this case. Please test the following PR in your situation:
When running the PR, your version should be: This is a work-in-progress (WIP) branch. It may contain other defects and needs extensive testing. Use with caution. |
After what you propose, I ended with the very last version:
Now I have this error. With the previous version I had no results, so it there is improvement !
|
Note that |
@mickaelleclercq |
There are a lot of personal information in it ! I can't send this here |
@mickaelleclercq The new PR version is |
Installed the new one
Here is the output or shared folders request:
And the verbose:
In the "onedrive.getSharedWithMe API Response: " I see all files that have been shared by other peoples in my organization. The folder shared by external organization does not appear. |
@mickaelleclercq
When running the PR version you application version should be:
|
Is there a way to retrieve it ?
|
Run the PR from the build directory with |
After a
Bravo ! |
@mickaelleclercq Can you confirm if you can sync the external shared folders or is there an auth / access issue? |
Error is repeating many times
|
@mickaelleclercq If you look at the debug logs + add Because the access scopes were dropped, this is why you get |
Let's hope that Microsoft work on this soon |
So, two years later, I assume this has still not been fixed by Microsoft? I'm trying to find some way to upload a file to a shared directory from Linux, and so far this was looking like my best bet... |
If the organisation is not yours, then no - if you are part of the organisation you are trying to upload to there should be no issue |
I am currently syncing a shared business folder, which was created by my organization but contains data from a collaborator from an outside organization. Thus, outside-org data in an own-org shared folder seems to work perfectly fine. So, as a workaround, if only one party uses this OneDrive client for Linux, one can create a shared business folder to which other parties contribute. Please feel free to remove this comment, if it only states the obvious or is in any other way not relevant. |
Yes ... that will always work because your 'linux onedrive client' is authenticated with your org. This issue is about the 'reverse' .. where the 'linux onedrive client' is authenticated with your org, but someone outside your org has shared with you a folder, and you add it online (which is possible) .. but due to how the authentication scopes work, accessing this from the 'linux onedrive client' is broken (at least when this was first investigated, and has not been checked since). |
Shared folders, shared with you from people outside of your 'organisation' are unable to be synced. This is due to the Microsoft Graph API not presenting these folders.
Shared folders that match this scenario, when you view 'Shared' via OneDrive online, will have a 'world' symbol as per below:
This can only be fixed once the Microsoft Graph API is fixed.
The text was updated successfully, but these errors were encountered: