Doc Owner and Permission Information

31 views
Skip to first unread message

Ashish Jain

unread,
Nov 17, 2025, 6:18:05 PM (2 days ago) Nov 17
to GAM for Google Workspace
I am looking to find the owner and permissions of a Google Document via gam without impersonating as an admin. I only want to get the metadata and permissions of the document. Is that possible?

I tried 

gam show ownership <docid>

which gives in owner information, but in a few cases it fails too stating "Not Found". Behind the scenes it uses reports API which may not have data if the file has not been opened for long. Still unable to get permissions without impersonation. Any guidance?

Ross Scroggs

unread,
Nov 17, 2025, 6:49:59 PM (2 days ago) Nov 17
to google-ap...@googlegroups.com
See: https://github.com/GAM-team/GAM/wiki/Find-File-Owner#display-file-ownership-for-old-files

Add this to the end of the fieldsllist: ,basicpermissions

Add this to the end of the command: oneitemperrow

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/0cc524b0-77fc-4fb4-8a4c-4c668eb8f729n%40googlegroups.com.

Ashish Jain

unread,
Nov 17, 2025, 6:57:18 PM (2 days ago) Nov 17
to GAM for Google Workspace
Will it loop through all users trying to impersonate everyone and getting if this file is owned by anyone? I do not want to impersonate as the user to get metadata and permissions. Not sure if Google has something which can give this info as super admin or so?

Ross Scroggs

unread,
Nov 17, 2025, 7:21:29 PM (2 days ago) Nov 17
to google-ap...@googlegroups.com
For files with no activity in the last 180 days, this is the only way to get the data you want. You have to impersonate each user
until you fand a user that hass access to the file; they don't have to be the owner.

There is nothing that a suprt admin can do.

Ross
----
Ross Scroggs


Ashish Jain

unread,
Nov 18, 2025, 9:36:50 AM (2 days ago) Nov 18
to GAM for Google Workspace
Oh ok. Thanks Ross.
Reply all
Reply to author
Forward
0 new messages