Listing Google Chat Spaces

770 views
Skip to first unread message

Elsa LAI

unread,
Mar 28, 2022, 3:11:18 AM3/28/22
to GAM for Google Workspace
Hi all,

May I know how to list out all the chat rooms (spaces) and the members of each chat room (space) within our organization?

When I follow related GAM commands like "gam print chatspaces >> chatspaces.csv", it always prompts me the following error message:

ERROR:
To set up Google Chat for your API project, please go to:

    https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat?project=gam-project-426-w3m-dql

and complete all fields.

When I go to the above URL, the screen shows the following:

You do not have sufficient permissions to view this page
RETRYTROUBLESHOOT

There was an error while loading /apis/api/chat.googleapis.com/hangouts-chat?project=gam-project-426-w3m-dql

You are missing the following required permissions:

Project

resourcemanager.projects.get
serviceusage.services.get

Check that the project ID is valid and you have permissions to access it.

Please help clarifying the situation and the procedures of troubleshooting.
Thank you so much.

Best wishes,
Elsa

Ross Scroggs

unread,
Mar 28, 2022, 1:52:01 PM3/28/22
to google-ap...@googlegroups.com
Elsa,

When you go to the URL, you need to be logged on as the admin that created your GAM project.
Was taht the case?



Disclaimer: This email (and any attachments) may contain privileged and confidential information and is solely for the use of the intended recipient(s). Any unauthorized dissemination, distribution or copying of this email is strictly prohibited. If you have received this email by mistake, please notify the sender immediately and delete this email.

--
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/35c32611-af29-401e-b22c-d716aa0e956dn%40googlegroups.com.

Elsa LAI

unread,
Apr 12, 2022, 4:23:36 AM4/12/22
to GAM for Google Workspace
Ross,

I can finally setup the project. Thank you so much.

Another question: Are there any GAM commands which can create Chat Spaces and add/delete members of Chat Spaces like the Classroom commands?

Best wishes,
Elsa

Cole Chen

unread,
Sep 12, 2023, 5:36:52 PM9/12/23
to GAM for Google Workspace
I am looking for commands to list chatspaces with its associated members

Ross Scroggs

unread,
Sep 12, 2023, 5:42:38 PM9/12/23
to google-ap...@googlegroups.com
Cole,

First you list all of the chat spaces, the you list the members for each user/chatspace combination. Then you weed out all of the duplicates.
There is no API support for listing all chat spaces; there is no support for listing members of all chat spaces. You have to do the work.

Ross
----
Ross Scroggs



Cole Chen

unread,
Sep 12, 2023, 6:46:40 PM9/12/23
to google-ap...@googlegroups.com, Cole Chen
Hi Ross,

Thanks for the info, I was able to use "gam all users print chatspaces todrive” to export and filtering out the duplicates and got I wanted. Thank you!

Cole

Reply all
Reply to author
Forward
0 new messages