Remove a user from a teamdrive

119 views
Skip to first unread message

Arnaud Lienard

unread,
Jul 28, 2022, 4:21:21 PM7/28/22
to GAM for Google Workspace
Hi,

I have a user who accesses a shared drive and I would like to remove his role so that he can no longer access this shared drive but I can't find the GAM command to do this.

To add it, I used the command :

gam user aaaaaa.a...@domain.com add drivefileacl 1RFDSVRT567H user bbbbbb...@domain.com role reader

So to remove it, I foolishly tried the command below but of course it doesn't work:

gam user aaaaaa.a...@domain.com del drivefileacl 1RFDSVRT567H user  bbbbbb...@domain.com

I searched the GAM documentation and couldn't find it :-(

Any help would be appreciated.
Thanks
Arnaud
Please consider the environment before printing this e-mail.

Information in this message is confidential and is intended solely for the persons to whom it is addressed. If you are not the intended recipient please notify the sender and immediately delete this message from your computer.

This system may be monitored or recorded to secure the effective operation of the system and for other lawful purposes.  Please check out the Privacy Notice on our website for details.

Maj Marshall Giguere

unread,
Jul 28, 2022, 5:02:36 PM7/28/22
to google-ap...@googlegroups.com

gam delete drivefileacl teamdrive:"<teamdrive name"> <user_email>

Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.



--
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/38702ffb-4300-4060-9a84-96e255bc78e5n%40googlegroups.com.

Ramond B

unread,
Jul 28, 2022, 5:50:59 PM7/28/22
to google-ap...@googlegroups.com
This is what I used

gam delete drivefileacl teamdrive "Shared Drive name" us...@domain.com

 Or you can use the drive id. 


On Jul 28, 2022, at 4:21 PM, 'Arnaud Lienard' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi,
--

Arnaud Lienard

unread,
Jul 29, 2022, 1:41:38 AM7/29/22
to GAM for Google Workspace
Thank you both for your answers.

I tried the proposed command but I still get the same answer: ERROR: drivefileacl is not a valid argument for "gam delete".

I just saw that there are several versions of GAM, maybe it's related to that? On my computer, I use GAM Standard.

Thank you for your help
Arnaud

Arnaud Lienard

unread,
Jul 29, 2022, 4:52:54 AM7/29/22
to GAM for Google Workspace
I installed GAMADV-XTD3 and tested the command, everything is ok now 🙂

Thanks for your help
Have a nice day

Maj Marshall Giguere

unread,
Jul 29, 2022, 10:12:14 AM7/29/22
to google-ap...@googlegroups.com
I assumed GAMADV, for GAM standard see: https://github.com/GAM-team/GAM/wiki/Command-Reference:-Drive#gam-user-user-emaildelete-drivefileacl-file-id-permission-id-asadmin
So it would be:
gam user some...@somedomain.com delete drivefileacl <the file ID value> <the drivefile ACL ID value> asadmin

Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.


Arnaud Lienard

unread,
Jul 29, 2022, 11:16:25 AM7/29/22
to GAM for Google Workspace
Marsh,

I tested it and it didn't work. I'm not sure if this command is for shared drives but the 1st command line you gave me is Ok.

Thank you

Maj Marshall Giguere

unread,
Jul 29, 2022, 11:53:23 AM7/29/22
to google-ap...@googlegroups.com
OK.

Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.


Reply all
Reply to author
Forward
0 new messages