Cloud shell disconnection

13 views
Skip to first unread message

Lauryn Thomas

unread,
Apr 28, 2026, 4:18:51 PM (23 hours ago) Apr 28
to GAM for Google Workspace
Hello, 

I am running a command to get Shared Drive file permissions in Google Cloud Shell. However, this drive is quite big and the connection in cloud shell keeps ending before the item is done processing. It will see I need to reconnect to the cloud shell. Any ideas on how I could prevent this from happening or have the command run faster. 

Command is : gam user <user email> print filelist fields id,webViewLink,permissions,modifiedtime select teamdriveid <shared drive id> pm type user notdomain <domain name> em oneitemperrow todrive

Thanks

Ross Scroggs

unread,
Apr 28, 2026, 4:29:14 PM (23 hours ago) Apr 28
to google-ap...@googlegroups.com
Lauryn,

The Cloud Shell expects you to type or move the mouse to keep the session allive; other people have mentioned some mouse wiggler app.

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/c1c0a5e2-0e62-4a0f-92bc-7b7149d1d614n%40googlegroups.com.

Lauryn Thomas

unread,
Apr 28, 2026, 4:34:50 PM (23 hours ago) Apr 28
to GAM for Google Workspace
Any apps in particular? 

Also if I ran the command locally on my device in the terminal vs the cloud shell could I avoid the timing out? 

Jay Lee

unread,
Apr 28, 2026, 4:41:07 PM (23 hours ago) Apr 28
to google-ap...@googlegroups.com
Cloud Shell is really not designed for long-term use like this. I'd strongly recommend moving to a dedicated Google Compute Engine VM. The cost is generally free or very cheap:

https://github.com/GAM-team/GAM/wiki/Running-GAM7-securely-on-a-Google-Compute-Engine

Jay Lee


Ross Scroggs

unread,
Apr 28, 2026, 4:42:26 PM (23 hours ago) Apr 28
to google-ap...@googlegroups.com
THey didn't mention an app name.

On your local device it will not timeout.

Send me a private Meet/Zoom invitation to discuss.

Ross
----
Ross Scroggs


Lauryn Thomas

unread,
Apr 28, 2026, 11:26:06 PM (16 hours ago) Apr 28
to GAM for Google Workspace
Hi Ross,

I sent you an invite to maybe troubleshoot. I've ran a similar command on a my drive with nearly 1 million files and folders without the shell timing out. Meanwhile when I run it on this shared drive it only gets to about around 9,000. 
 
Reply all
Reply to author
Forward
0 new messages