Error 403 trying to delete file that is shared with users from outside domain

21 views
Skip to first unread message

Gary Wertman

unread,
Jan 26, 2022, 2:21:50 PMJan 26
to GAM for Google Workspace
Hi, all.
I am trying to remove a malicious file that was recently shared with some users in my domain from an outside account. When trying to delete the file I receive the following:
<HttpError 403 when requesting https://www.googleapis.com/drive/v2/files/1p8Q2HW6U_xYdHgDWY2uBWPIXJUA8EpSN/trash?supportsAllDrives=true&alt=json returned "Insufficient permissions for this file". Details: "[{'domain': 'global', 'reason': 'forbidden', 'message': 'Insufficient permissions for this file', 'locationType': 'other', 'location': 'file.permissions'}]">

Is GAM capable of removing files under "shared with me"?

Thanks!

-Gary

Ross Scroggs

unread,
Jan 26, 2022, 2:30:05 PMJan 26
to google-ap...@googlegroups.com
Gary,

You can't delete a file owned by someone outside of your domain.

--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/8d51299c-d224-402e-b521-20a7b12165b8n%40googlegroups.com.

Kim Nilsson

unread,
Jan 28, 2022, 4:04:59 AMJan 28
to GAM for Google Workspace
Ross,

the individual user can elect to "delete = remove" the file from their Shared with me view.
Is that something gam can do?

The file is still shared with them, of course, but it's now no longer visible in Shared with me.

Gary Wertman

unread,
Feb 1, 2022, 3:48:07 PMFeb 1
to GAM for Google Workspace

That would be a fantastic feature, Ross!
Reply all
Reply to author
Forward
0 new messages