title: Find given file ID in a Drive that the admin may not be a part of
body: <p>I am working against the Google drive API and would like to allow my users to fetch the name of a given file by ID from any shared drive within their GSuite organization.</p>
  <p>I am using a service account to authenticate and have granted my service account user the appropriate permissions/scopes within the organization's admin console:</p>
  <blockquote>
  <p><a href="https://www.googleapis.com/auth/admin.directory.user.readonly" rel="nofollow noreferrer">https://www.googleapis.com/auth/admin.directory.user.readonly</a>
  <a href="https://www.googleapis.com/auth/admin.directory.group.readonly" rel="nofollow noreferrer">https://www.googleapis.com/auth/admin.directory.group.readonly</a>
  <a href="https://www.googleapis.com/auth/admin.directory.group.member.readonly" rel="nofollow noreferrer">https://www.googleapis.com/auth/admin.directory.group.member.readonly</a>
  <a href="https://www.googleapis.com/auth/admin.directory.domain.readonly" rel="nofollow noreferrer">https://www.googleapis.com/auth/admin.directory.domain.readonly</a>
  <a href="https://www.googleapis.com/auth/drive" rel="nofollow noreferrer">https://www.googleapis.com/auth/drive</a></p>
  </blockquote>
  <p>Because the admin user of the account does not have access to every file in every Drive, requests attempting to find a single file by fileID will fail if the admin user does not have access. It seems that the only way to query for this specific file would be to find a user that has access to each Shared Drive and then query that Shared Drive for the fileID to see if it exists.</p>
  <p>For example, if I query <code>Drives:list</code> with the admin user setting <code>useDomainAdminAccess = true</code> I am able to see all of the Drives within the organization (including ones I do not have access to as the admin).</p>
  <p>If I attempt to list files from those Drives using <code>Files:list</code> with the following code.</p>
  <pre><code>corpora=drive&amp;driveId={xxxxx}&amp;includeItemsFromAllDrives=true&amp;includeTeamDriveItems=true
  </code></pre>
  <p>I'll receive a 403 and an error stating:</p>
  <blockquote>
  <p>{
  &quot;message&quot;: &quot;The attempted action requires shared drive membership.&quot;
  }</p>
  </blockquote>
  <p>From the documentation there does not seem to be an analogue to <code>useDomainAdminAccess</code> when querying against files.</p>
  <p>If the admin user cannot access files on these Drives, is the only method to retrieve them to find a user that has access to the Drive while impersonating as them?</p>