Domain administrators can search for all shared
drives in the organization by setting the
useDomainAdminAccess parameter with
the drives.list method.
q parameter to do a search query
combining one or more search clauses. Each search clause is made up of three parts.
- Attribute of the shared drive that is searched, e.g., the
nameof the shared drive.
- Test that is performed on the data to provide a match, e.g.,
- The content of the attribute that is tested, e.g. the name of the shared drive
My cool project.
Combine clauses with the conjunctions
or, and negate the query with
Valid fields for
||Name of the shared drive.|
||Date when the shared drive was created.|
||Number of users and groups that are members of the shared drive.|
||Number of users and groups that are organizers of the shared drive.|
|String||Surround with single quotes
|Date||RFC 3339 format, default timezone is UTC, e.g.,
|Number||A numerical value.|
||The content of one string is present in the other.|
||The content of a string or boolean is equal to the other.|
||The content of a string or boolean is not equal to the other.|
||A value is less than another|
||A value is less than or equal to another.|
||A value is later than another.|
||A value is later than or equal to another.|
||Return items that match both clauses.|
||Return items that match either clause.|
||Negates a search clause.|
For compound clauses, you can use parentheses to group clauses together. For example:
createdDate > '2019-01-01T12:00:00' and (organizerCount > 5 or memberCount > 20)
This search returns all shared drives created after January 1st, 2019 that have more
than 5 organizers or more than 20 members. Because
or operators are
evaluated from left to right, without parentheses the above example would return
only shared drives with more than 5 organizers that were created after January 1st, 2019,
but would return all shared drives with more than 20 members, even those created before January 1st, 2019.
All examples on this page show the unencoded
q parameter, where
organizerCount = 0 is encoded as
organizerCount+%3d+0. Client libraries handle this encoding automatically.
Search for shared drives with no assigned organizer
organizerCount = 0
Search for shared drives created after June 1, 2017
createdDate > '2017-06-01T12:00:00'
Search for shared drives with the word 'confidential' in the title and 20 or more members
name contains 'confidential' and memberCount >= 20