GAM Command to export all the google sites

707 views
Skip to first unread message

Rohit Talmale

unread,
May 28, 2024, 9:20:57 AM5/28/24
to GAM for Google Workspace
Hi,

I tried the command gam print sites domains <Domain> but received an error: "There are no scopes authorized for the Sites API."  How can I fix this or let us know if there is any possible way to export all the Google sites created by the users?

Ross Scroggs

unread,
May 28, 2024, 9:27:12 AM5/28/24
to google-ap...@googlegroups.com
Do: gam oauth create
Make sure that the Sites API is selecte.

Ross
----
Ross Scroggs



On May 28, 2024, at 6:20 AM, 'Rohit Talmale' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi,

I tried the command gam print sites domains <Domain> but received an error: "There are no scopes authorized for the Sites API."  How can I fix this or let us know if there is any possible way to export all the Google sites created by the users?


The purpose of Shivaami is to make a positive change in the life of the people we connect by offering solutions and services which bring profit and happiness.

--
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/f11f22b6-3e51-4a74-be65-3931cf30f0c6n%40googlegroups.com.

Rohit Talmale

unread,
May 28, 2024, 9:44:08 AM5/28/24
to google-ap...@googlegroups.com
Hi, Ross.

What to select here, can you provide the proper syntax, please?




image.png

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/A-Pfy4K1_oM/unsubscribe.
To unsubscribe from this group and all its topics, 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/8D062F9E-ACA3-480C-86AD-9A737A61AC11%40gmail.com.


--
Please feel free to contact me if you need any further information.

Thanks & Regards,
 Rohit Talmale | Google Certified - Professional Workspace Administrator | sup...@shivaami.com   

Google Workspace Productivity Tips & Google applications learning

Ross Scroggs

unread,
May 28, 2024, 10:51:12 AM5/28/24
to google-ap...@googlegroups.com
Type 49 and return
Type c and return

This API is for classic sites, is that what you want?

Ross



--

Rohit Talmale

unread,
May 29, 2024, 12:17:18 AM5/29/24
to google-ap...@googlegroups.com
Hi, Ross.

We just want to export all the sites created on our domain.

Ross Scroggs

unread,
May 29, 2024, 12:21:41 AM5/29/24
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation and I'll help.

Ross
----
Ross Scroggs


On May 28, 2024, at 9:16 PM, 'Rohit Talmale' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi, Ross.

We just want to export all the sites created on our domain.

On Tue, May 28, 2024 at 8:21 PM Ross Scroggs <ross.s...@gmail.com> wrote:
Type 49 and return
Type c and return

This API is for classic sites, is that what you want?

Ross

On Tue, May 28, 2024 at 6:44 AM 'Rohit Talmale' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
Hi, Ross.

What to select here, can you provide the proper syntax, please?




<image.png>

Rohit Talmale

unread,
May 29, 2024, 1:38:22 AM5/29/24
to google-ap...@googlegroups.com
Hi, Ross.

Please see an instant meet details below


Ross Scroggs

unread,
May 29, 2024, 1:41:42 PM5/29/24
to google-ap...@googlegroups.com
Add this to the command if you want the filepath to the new site file: filepath mimetypeinquery

This will be the filepath and quill be Fast

Ross
----
Ross Scroggs


Rohit Talmale

unread,
May 29, 2024, 11:59:52 PM5/29/24
to google-ap...@googlegroups.com
Hi, Ross.

Sure. Thanks for the support. Client was not available yesterday, I will check today and will let you know if any...

Rohit Talmale

unread,
May 30, 2024, 7:12:59 AM5/30/24
to GAM for Google Workspace
Hi, Ross.

We tried to configure advance gam, but at the time of authorization, all the scopes were failing. We tried removing the complete setup and trying to configure it again, but it was still not being passed.

Rohit Talmale

unread,
May 30, 2024, 7:21:32 AM5/30/24
to GAM for Google Workspace
Hi, Ross.

Please confirm if we can connect @5:00 PM IST today, Client will also be with us.

Ross Scroggs

unread,
May 30, 2024, 10:10:24 AM5/30/24
to google-ap...@googlegroups.com
It's 7:10AM PDT, I am available now.

Ross
----
Ross Scroggs


Rohit Talmale

unread,
May 30, 2024, 10:44:00 AM5/30/24
to google-ap...@googlegroups.com
Hi, Ross.

Can we connect tomorrow? 11:30 AM IST, Please...

Ross Scroggs

unread,
May 30, 2024, 10:53:01 AM5/30/24
to google-ap...@googlegroups.com
No: Friday 11:30 AM IST is Thusday 12:00AM PDT (midnight). I can do 8:30AM IST which will be 9:00PM PDT.

Ross
----
Ross Scroggs


Rohit Talmale

unread,
May 31, 2024, 3:08:35 AM5/31/24
to google-ap...@googlegroups.com
Hi, Ross.

Thanks! It's done. 

I have another query with the same command below. Can we get a list of the recipients who have access to the sites? I mean, the list of users with whom the owner shared the site?

gam config auto_batch_min 1 num_threads 10 redirect csv ./parthatigerana.csv multiprocess redirect stdout - multiprocess redirect stderr stdout domains tigeranalytics.com print filelist fields id,name,mimetype,webviewlink showmimetype gsite

Rohit Talmale

unread,
May 31, 2024, 3:11:21 AM5/31/24
to google-ap...@googlegroups.com
Also, I am looking for a command that we can use to export the Google Space List. I mean, the old chat details when the space was known as Google Chat.

Ross Scroggs

unread,
May 31, 2024, 9:40:25 AM5/31/24
to google-ap...@googlegroups.com
gam config auto_batch_min 1 num_threads 10 redirect csv ./parthatigerana.csv multiprocess redirect stdout - multiprocess redirect stderr stdout domains tigeranalytics.com print filelist fields id,name,mimetype,webviewlink,basicpermissions showmimetype gsite oneitemperrow

This will give a row per ACL per site.

Ross
----
Ross Scroggs


Ross Scroggs

unread,
May 31, 2024, 9:41:47 AM5/31/24
to google-ap...@googlegroups.com

Rohit Talmale

unread,
Jun 3, 2024, 3:40:22 AM6/3/24
to google-ap...@googlegroups.com
Hello, Ross.

We greatly appreciate your rapid response and the assistance you've provided.

We examined the article you mentioned in your earlier email, however we want to export it for all domain users. We cannot do it for each individual user. Can we do it? Are there any commands which  I can use to export chat and spaces from my domain?

Rohit Talmale

unread,
Jun 3, 2024, 4:31:52 AM6/3/24
to google-ap...@googlegroups.com
Hi, Ross.

We tried the command below, and the command is being executed; however, we received an error below:

ERROR: Got an unexpected keyword argument orderBy

Command : 
gam config auto_batch_min 1 redirect csv ./AllChatSpaces.csv multiprocess redirect stdout - multiprocess redirect stderr stdout all users print chatspaces

Ross Scroggs

unread,
Jun 3, 2024, 10:14:05 AM6/3/24
to google-ap...@googlegroups.com
It's a bug, will fix shortly.

Ross
----
Ross Scroggs


Rohit Talmale

unread,
Jun 3, 2024, 10:21:15 AM6/3/24
to google-ap...@googlegroups.com
Hi, Ross.

Is there any workaround or any other command that may help us get this done?

Ross Scroggs

unread,
Jun 3, 2024, 10:45:04 AM6/3/24
to google-ap...@googlegroups.com
There is no workaround. The bug is fixed in 6.76.12 which is now available.

Ross
----
Ross Scroggs


Rohit Talmale

unread,
Jun 10, 2024, 5:49:53 AM6/10/24
to google-ap...@googlegroups.com
Hi, Ross.

I've upgraded to the latest version, but still it is not getting executed. I've got an error below; it is asking to set up an API project. We tried but are getting confused. Can you please help us with this?

image.png

Rohit Talmale

unread,
Jun 11, 2024, 1:06:45 AM6/11/24
to google-ap...@googlegroups.com
Hi, Ross.

Please let us know when we can connect. We appreciate your support.

Ajo Jose

unread,
Mar 6, 2025, 11:30:01 AMMar 6
to GAM for Google Workspace
Hi @Ross.S...@gmail.com

It appears that the classic sites API is deprecated ,how can we get the list of all google sites in our domain now

Ross Scroggs

unread,
Mar 6, 2025, 11:43:13 AMMar 6
to google-ap...@googlegroups.com

You can list new sites for all users with the following command:


gam config auto_batch_min 1 num_threads 10 redirect csv ./NewSites.csv multiprocess redirect stderr - multiprocess all users print filelist fields id,name,mimetype filepath showmimetype gsite


Ross


----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages