greg
greg

Reputation: 1204

Microsoft Graph Filter shared OneDrive files

Based on the graph filtering docs, I have been trying to implement the call below. I think my syntax could be off since the filter is not being applied :(, any suggestions folks?

Trying to use the complex entity types with a display name like "John Doe".

https://graph.microsoft.com/v1.0/me/drive/sharedWithMe?$filter=remoteItem/createdBy/user/displayName eq '{DISPLAY_NAME}'

Upvotes: 0

Views: 475

Answers (1)

Michael Mainer
Michael Mainer

Reputation: 3475

SharedWithMe is not a resource. It is a function and I don't think you can apply filters on the results of a function (my confidence is about 60% on this answer).

<Function Name="sharedWithMe" IsBound="true">
    <Parameter Name="bindingParameter" Type="microsoft.graph.drive" Nullable="false"/>
    <ReturnType Type="Collection(microsoft.graph.driveItem)" Nullable="false"/>
</Function>

You'll need to perform client-side filtering.

Upvotes: 1

Related Questions