Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

query 'sharedWithMe=false' Invalid Value?

Any variation of 'sharedWithMe=false' gives me the 400 error 'Invalid Value' in reference to the q parameter:

sharedWithMe=false
sharedWithMe!=true
not(sharedWithMe=true)
etc...

It's annoying, I want to get a list of all my files using the 'allDrives' corpora (User files + Shared Drives + Shared with me) but not include the files that have been shared with me.

There's simply no way to do this without breaking it down into separate requests (1 for root Drive with 'me' in owner query, and a request for each shared drive I'm a member of.

Does anyone know why it's doing this, or can suggest an elegant solution around this?

like image 499
hedgehog90 Avatar asked Sep 01 '25 04:09

hedgehog90


1 Answers

This is a bug

It seems that the documentation doesn't reflect the actual behavior for the sharedWithMe Search Query Term.

Here is a recent tracker that I found which reports this issue:

https://issuetracker.google.com/issues/173111277

Feel free to star it to indicate that you are affected too.

Reference

Subscribing by starring an Issue

like image 138
Alessandro Avatar answered Sep 04 '25 15:09

Alessandro