Can't remove permission from a Google Drive File

271 views
Skip to first unread message

Lauryn Thomas

unread,
Jul 18, 2025, 8:06:18 PM7/18/25
to GAM for Google Workspace
Hello, 

I am trying to remove external users from certain drive files in the domain. I used gam user file...@example.com show drivefileacls <fileId>

Then I copied the file ID from that, and then did gam user <owner> delete drivefileacl <fileId> <permissionId> and get the following error "Delete Failed: The authenticated user does not have the required access to delete the permission."

So then I tried to delete myself as I have the correct scopes to do the deletion so I tried gam user < admin email> delete drivefileacl <fileId> <permissionId> . I got the following error "Permission ID: 10017327038573619951i, Does not exist", which this permission id that was listed is different from the actual permission id I did when I typed gam user < admin email> delete drivefileacl <fileId> <permissionId>. 

Can someone help I am on GAM 7

Ross Scroggs

unread,
Jul 18, 2025, 9:27:27 PM7/18/25
to google-ap...@googlegroups.com
You need id:, witjout that GAM thinks that you're entering an email address.

gam user <owner> delete drivefileacl <fileId> id:<permissionId>

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/fdf00f15-6ed7-4656-b82f-59f92e1d3a09n%40googlegroups.com.

Lauryn Thomas

unread,
Jul 18, 2025, 10:06:23 PM7/18/25
to google-ap...@googlegroups.com
Hello Ross, 

In my original message I mentioned I used gam user <owner> delete drivefileacl <fileId> id:<permissionId> and get the following error "Delete Failed: The authenticated user does not have the required access to delete the permission."

So any ideas why I saw that error and how to fix it?



You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/FDw5AaUyDyY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/8EBC3EE7-6644-4965-9E60-95C377FAD126%40gmail.com.

Lauryn Thomas

unread,
Jul 18, 2025, 10:10:22 PM7/18/25
to google-ap...@googlegroups.com
Oh wait I see the difference. However, I did it without the id and half of the 1,000+ files worked and the other half i saw the error. I'll try with id to see if this will work with the rest and report back. Thanks. 

Ross Scroggs

unread,
Jul 18, 2025, 10:48:49 PM7/18/25
to google-ap...@googlegroups.com
Lauren,

It's 7:47 here in California, I can ZoomMeet if you 'd like and we can research,

Ross
----
Ross Scroggs


Ross Scroggs

unread,
Jul 18, 2025, 10:58:41 PM7/18/25
to google-ap...@googlegroups.com
For one of the files where: gam user <owner> delete drivefileacl <fileId> id:<permissionId>
generates this: Delete Failed: The authenticated user does not have the required access to delete the permission.

Do: gam user <owner> show fileinfo <fileId>
Send me the results privately.

Ross
----
Ross Scroggs


Lauryn Thomas

unread,
Jul 19, 2025, 9:00:57 AM7/19/25
to google-ap...@googlegroups.com
Sent you the results, as requested. 



William Lopes

unread,
Jul 21, 2025, 4:10:27 PM7/21/25
to GAM for Google Workspace

Hello, I'm experiencing the same issue -> GAM 7.14.03. If I can contribute in any way, I'm available.

Ross Scroggs

unread,
Jul 21, 2025, 4:16:38 PM7/21/25
to google-ap...@googlegroups.com
You are probably tru=ying to delete an inherited ACL.

Send me a private Meet/Zoom invitation.

gam user <owner> delete drivefileacl <fileId> id:<permissionId> enforceexpansizeaccess false

Ross

----
Ross Scroggs



William Lopes

unread,
Jul 22, 2025, 12:42:45 PM7/22/25
to GAM for Google Workspace

It worked, thank you very much. I just corrected the parameter to "enforceexpansiveaccess".

Reply all
Reply to author
Forward
0 new messages