Someone verify this is the correct GAM Command to create a space for external users

184 views
Skip to first unread message

Jonathan Ascencio

unread,
Mar 19, 2024, 3:49:08 PM3/19/24
to GAM for Google Workspace
Hello,
I am wanting to do the following, I will need to do this in BULK as well 200+ possibly
1. Create a Google Chat Space
2. Allow for External Users
3. Restricted to invited users only
4. if possible members < using a CSV?


gam <svcac...@domain.com> create chatspace type <space> restricted externalusersallowed <true> displayname <enterdisplayname> description <enterdiscription>

Ross Scroggs

unread,
Mar 19, 2024, 5:56:42 PM3/19/24
to google-ap...@googlegroups.com
Jonathan,

The restricted keyword may not work as it was/is? in Developer Preview.

You could add the following to add members: members csvfile Chatters.csv:email

Chatters.csv should be a CSV file with a column labelled: email

You can only add up to 20 users.

Ross

--
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/e11919e6-d780-49c7-bb7e-408f6b9d25a3n%40googlegroups.com.


--

Jonathan Ascencio

unread,
Mar 19, 2024, 6:50:47 PM3/19/24
to google-ap...@googlegroups.com
Adding members via GAM is limited to 20 per command in general? Or only when attempting to create a space + adding members?

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/lmevNAqu-Po/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/CAJkvRS-pdNPLgK8pqf%2BUCmNenr2ey1Y5dgJkPxfcVie0P9DvVg%40mail.gmail.com.

Ross Scroggs

unread,
Mar 19, 2024, 7:34:25 PM3/19/24
to google-ap...@googlegroups.com
Only when creating a space

Ross



--

Jonathan Ascencio

unread,
Mar 19, 2024, 7:35:57 PM3/19/24
to google-ap...@googlegroups.com
And to leverage “restricted” keyword , it may not work when creating a space or in general? Just to know if I would have to run this separately or not

Jonathan Ascencio

unread,
Mar 28, 2024, 10:35:24 PM3/28/24
to GAM for Google Workspace
Hey Ross just wanted to bounce this off you I need to create about 200 Google Chat Spaces

I will have the CSV take care of the user creating the account, displayname, description, members (these spaces will have less than 20)

In terms of the columns I have the following:
I am a bit confused on how to list the members in the column for the spaces, if i need to add more than 1 member will it be separated by a space? comma?
Screenshot 2024-03-28 at 7.30.06 PM.png

GAM COMMAND:
gam csv /Users/jonathan.ascencio/Desktop/spaces.csv gam user "~creator" create chatspace type space restricted externalusersallowed true displayname "~displayname" description "~description" members user "~members"

Ross Scroggs

unread,
Mar 28, 2024, 11:41:14 PM3/28/24
to google-ap...@googlegroups.com
Multiple members should be space separated; no more than 20 are allowed.
Change user to users in your command:
gam csv /Users/jonathan.ascencio/Desktop/spaces.csv gam user "~creator" create chatspace type space restricted externalusersallowed true displayname "~displayname" description "~description" members users "~members"

Ross
----
Ross Scroggs



On Mar 28, 2024, at 7:35 PM, 'Jonathan Ascencio' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hey Ross just wanted to bounce this off you I need to create about 200 Google Chat Spaces

I will have the CSV take care of the user creating the account, displayname, description, members (these spaces will have less than 20)

In terms of the columns I have the following:
I am a bit confused on how to list the members in the column for the spaces, if i need to add more than 1 member will it be separated by a space? comma?
Reply all
Reply to author
Forward
0 new messages