title: Google Drive API Transfer ownership
body: <p>Background:</p>
  
  <p>Language: Python
  Libs version:
  oauth2client (1.4.6)
  apiclient (1.0.2)</p>
  
  <p>Script tasks:</p>
  
  <p>1 - Search for files shared with account "A" by account "B"</p>
  
  <pre><code>param['pageToken'] = page_token
  param['maxResults'] = 1000
  param['q'] = "not '%s' in owners and trashed = false" % (account_A_email)
  files = service.files().list(**param).execute()
  </code></pre>
  
  <p>2 - Impersonate as account "B" using "SignedJwtAssertionCredentials" and set account "A" as owner</p>
  
  <pre><code>new_permission = {}
  new_permission['value'] = account_A_email
  new_permission['type'] = 'user'
  new_permission['role'] = 'owner'
  service.permissions().insert(fileId=file_id, body=new_permission).execute()
  # Note: I have tried service.permissions().update() but it did not work
  </code></pre>
  
  <p>Issue:</p>
  
  <p>Once the new permission applied on any file, the file appears on account "A" root folder as well as the original location. This behavior is similar to "Add to my Drive" in the Drive UI.</p>
  
  <p>Any idea how to stop the "Add to my Drive" behavior?</p>
  
  <p>Thanks in advance, </p>