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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?