How to get additional permissions of file/folder in Shared Drive

2 views
Skip to first unread message

Simon Blandford

unread,
Jan 28, 2025, 10:31:41 AMJan 28
to Google APIs Discovery Service Users
Hi,

I am writing a python script to list all the files and folders in shared drives that have more people with roles set than the default for that shared drive.

For My Drive I could just query the permissions[] property of the file however, according to the API docs, permissions[]
object (Permission) Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.” So it is always empty. However this is exactly the information I want. How can I get this for items in a Shared Drive. It must exist somewhere because I can see/set it in the UI. So where is it in the API?
Reply all
Reply to author
Forward
0 new messages