Open ajweber opened 5 years ago
Is there anywhere I can track the service bug on this?
And/or has anyone determined a workaround to "list" items shared with the current user?
Thanks.
Is there anywhere I can track the service bug on this?
No this doesn't exist. I would love for this to exist.
And/or has anyone determined a workaround to "list" items shared with the current user?
I haven't.
It is not documented, but add the allowExternal
querystring parameter:
https://graph.microsoft.com/v1.0/me/drive/sharedWithMe?allowExternal=true
@JeremyKelley We really should have this as a function overload.
<Function Name="sharedWithMe" IsBound="true">
<Parameter Name="bindingParameter" Type="microsoft.graph.drive"/>
<Parameter Name="allowExternal" Type="Edm.boolean"/>
<ReturnType Type="Collection(microsoft.graph.driveItem)"/>
</Function>
IDK if this is slightly OT now, but I thank @pschaeflein for that info very much...however, I realized in testing that I can't find a way to actually share outside my organization in the first place? The only option in the OneDrive webapp is to share a link (tried from both Business and Personal), and these work way differently.
I can re-post to SO, but does anyone know a way to share outside the organization?
Or is there some query we can run to get all links shared with us - something like "see invitations"? (This seems a long-shot, because it appears that the email links are just wide-open, though you can request the user authenticate.)
Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:
https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph
For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!
Note: We will close this repository on April 19, 2024.
Some details (and note comment) in StackOverflow here: https://stackoverflow.com/questions/54714498/get-me-drive-sharedwithme-returns-empty-list
Basically, it appears that SharedWithMe only returns a subset of actual items shared with the currently authenticated user: Only those shared from another user within the same organization.
Easy to test: have another user, from a different "organization", share a driveitem/file with you. Attempt to retrieve the list of sharedwithme driveitems. The list will be empty (if only items from outside your organization are shared with you), or will not return the item you are testing.
This may be a service issue - please forward to the Graph REST/Services team if necessary? AB#7315