Determine the owner of a Google Drive document with a service account -
i looking way retrieve content of drive document on google apps domain knowing nothing document id.
i have service account can authorized on google apps domain required scope , can impersonate user. document can owned user of domain , not shared specific account.
is there way more efficient going through users 1 one, checking if have access said document, , if yes retrieve document's content? worst case scenario, have go through users before being able open document, can quite heavy.
if had way determine owner of document, impersonate him , content easily.
thanks lot,
for security reasons, users have no access document won't able see details document including owner. option loop on each , every user.
if have google apps unlimited or google apps edu, may able use reports api better idea of users in domain may have viewed or edited document giving clue has access. this, list drive activities , include doc_id in filter attribute.
Comments
Post a Comment