0
votes

I am trying to upload a multi-part document using the Google Drive Api. (Specifically - PUT https://www.googleapis.com/drive/v2/files/{fileId} )

My environment has two super-admins (User A and B) (for whatever reason). The Api is authenticated using one of the 'super-admin' (User A).

When I try to upload a revision for User A, then it succeeds. However, when I try to upload it for User B, I get

'The authenticated user does not have the required access to the file {fileId}'.

I would imagine the super admin to have access to everything. Does it entail to the scope I am using ? ( This is my current scope of request - https://www.googleapis.com/auth/drive)

Can someone tell me what am I missing ? :-/ Thanks.

1

1 Answers

0
votes

Even super admins do not have access to a file unless they've been directly granted access to that file. You can:

  1. Have User A share the file with User B (writer access). Then User B can update the file.

  2. Authenticate as User A in order to perform the update.

  3. Use a Service Account to authenticate and act as any user in the domain.