Covert User mailbox in to a Groups collaborative inbox

297 views
Skip to first unread message

Ancymon Shaji

unread,
Sep 13, 2022, 11:38:25 AM9/13/22
to GAM for Google Workspace
Hi,

Could I check how to convert a User mailbox in to a Groups collaborative inbox please.


Regards,
Ancymon

Ross Scroggs

unread,
Sep 13, 2022, 12:23:55 PM9/13/22
to google-ap...@googlegroups.com
Ancymon,

This will take several steps; you should test with a sample user and group.
Suppose the address of interest is ad...@domain.com

# Change the address of the user ad...@domain.com to xxx...@domain.com
gam update user ad...@domain.com email xxx...@domain.com
# Delete the alias created in the previous step
gam delete alias user ad...@domain.com
# Create the group ad...@domain.com; supply additional settings as desired
gam create group ad...@domain.com enablecollaborativeinbox true
# Archive user messages into group
gam user xxx...@domain.com archive messages ad...@domain.com doit

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/b66e8b69-7cbf-44d1-b09d-afd5eb1581b2n%40googlegroups.com.


--

James SEYMOUR

unread,
Dec 12, 2022, 12:47:23 AM12/12/22
to google-ap...@googlegroups.com
Hi Ross,

When I tested the last command (only), I got an error message.

gam user <User Email> archive messages <Group Email> doit
Getting all Messages for <User Email>
Got 201 Messages...
User: <Group Email>, Archive 201 Messages

ERROR: memoryview: a bytes-like object is required, not 'str'

Running without the doit, looks OK. It's only when you add the doit.

I'm updated to GAMADV-XTD3 6.29.18.

Cheers


James Seymour
Head of Systems and Communication
[t] +673.24.11.000  Ext 1203
[Time Zone] GMT +8 Hours


  I'm using Inbox When Ready to protect my focus.

Ross Scroggs

unread,
Dec 12, 2022, 1:12:03 PM12/12/22
to google-ap...@googlegroups.com

James SEYMOUR

unread,
Dec 12, 2022, 11:55:58 PM12/12/22
to google-ap...@googlegroups.com
Thanks, Ross.


Regards


James Seymour
Head of Systems and Communication
[t] +673.24.11.000  Ext 1203
[Time Zone] GMT +8 Hours


  I'm using Inbox When Ready to protect my focus.
Message has been deleted

Ross Scroggs

unread,
Sep 6, 2024, 1:49:22 PM9/6/24
to google-ap...@googlegroups.com
Show: gam version

Show the command you are executing

Ross

On Fri, Sep 6, 2024 at 10:47 AM Aaron Helfand <aaron....@joseandres.com> wrote:
Hi all, 

Sorry to revitalize this thread... I am trying to accomplish this task.  Is it no longer possible with the API? I keep getting an error that "archive" is not a valid argument for gam?
Aaron Helfand
Director, Enterprise Technology
JOSÉ ANDRÉS GROUP
717 D Street NW, 5th Floor
Washington, DC 20004
202 638 1910
520 834 2754
www.joseandres.com
WASHINGTON DC LAS VEGAS
THE BAHAMAS LOS ANGELES
MIAMI NEW YORK ORLANDO
CHICAGO DUBAI

Dinner Party Diaries with José Andrés Now Streaming on Prime | March 19 New Special

--
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.


--
Message has been deleted

Ross Scroggs

unread,
Sep 6, 2024, 2:02:10 PM9/6/24
to google-ap...@googlegroups.com
You're using Standard GAM, it has no command to archive messages.


Send me a Meet/Zoom invitation if you want help.

Ross

On Fri, Sep 6, 2024 at 10:58 AM Aaron Helfand <aaron....@joseandres.com> wrote:
GAM 6.58 - https://jaylee.us/gam - pyinstaller
Python 3.11.3 64-bit final
google-api-python-client 2.86.0
Windows 10 10.0.22631 SP0 Multiprocessor Free AMD64


Command = gam user abc...@domain.com archive messages ci.a...@domain.com doit

The Zaytinya Cookbook | Zaytinya: Delicious Mediterranean Dishes from Greece, Turkey, and Lebanon | Now Available | Order Now

--
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.


--

Aaron Helfand

unread,
Sep 6, 2024, 3:21:22 PM9/6/24
to GAM for Google Workspace
That was the sticky wicket Ross.  Thank you for catching this.  updated and resolved.  Though one day I am looking forward to hopping on Zoom with you :)

Aaron Helfand

unread,
Sep 9, 2024, 10:32:10 AM9/9/24
to GAM for Google Workspace
Good morning Ross -  I was able to run this command and it worked quite well until it got to a mail message that is what I presume to be over 25MB and then the transfer stopped mid way through.   Is there a way to prevent this? or if it is impossible to xfer anything over 25MB, is there a way to tell the command to skip and keep going? 

Below is the error. 
Traceback (most recent call last):
  File "__init__.py", line 75873, in ProcessGAMCommand
  File "__init__.py", line 68267, in archiveMessages
  File "__init__.py", line 5256, in callGAPI
  File "googleapiclient\discovery.py", line 1205, in method
googleapiclient.errors.MediaUploadSizeError: Media larger than: 26214400

Thanks, 
Aaron



--
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.

--
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.

Ross Scroggs

unread,
Sep 9, 2024, 12:35:14 PM9/9/24
to google-ap...@googlegroups.com
AAron,

Get 6.80.21 and retry the command.

Report your results.

Ross
----
Ross Scroggs



Vini Bettega

unread,
Sep 13, 2024, 6:31:06 AM9/13/24
to GAM for Google Workspace
Hi Ross

This command saved me!

# Archive user messages into group
gam user xxx...@domain.com archive messages ad...@domain.com doit

I'm using a Mac and GAMADV on Google Cloud Shell 

But I have 2 problems
1st: Very large mailboxes, the process is very slow and the google cloud shell get timeout.
Question on 1st problem, if I deploy GAM locally on my computer, will it timeout? 
2nd: Messages get duplicated when I run the command again to finish the mailbox archive.
Any solution for the 2nd problem?

Thanks in advance

Vini 


Ross Scroggs

unread,
Sep 13, 2024, 9:53:08 AM9/13/24
to google-ap...@googlegroups.com
1st: You can use the same project on your Mac that you are using on the cloud shell; it will not timeout.
Send me a Meet/Zoom invitation if you want help.

2nd: I don't know

Ross
----
Ross Scroggs


Aaron Helfand

unread,
Sep 13, 2024, 11:58:34 AM9/13/24
to GAM for Google Workspace
Ross,

This is working now.  It is skipping over the large email and moving on.  Thank you for the update!

Agree with Vini, the process is very slow to migrate large inboxes.  I think I am 3hours in on my test and only at 6000/15000...:( 

Vini Bettega

unread,
Sep 13, 2024, 4:44:42 PM9/13/24
to GAM for Google Workspace
thank you for the offer Ross, helpful as always!

Update
I deployed GAM locally on my Mac and it is scaping the large files, I think I can ignore that. from 15000 emails to "lose" one I don't think it will be a problem. 
My only problem now are the very large mailboxes, we have leavers that worked in the company for 6+y and it has 5GB of emails even locally GAM is failing at some point, returning 404 group doesn't exist.


Aaron Helfand

unread,
Sep 13, 2024, 5:04:52 PM9/13/24
to google-ap...@googlegroups.com
I received the 404 error as well today when it got to A little over 8000 of the 15,000 it was trying to archive.  

I didn’t report it because I thought it was related to me removing the group from the Global directories list simultaneously but now that you experienced the same thing I no longer think they are correlated  

Aaron Helfand


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/5JvgwbbMjro/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/a6013b9f-4c7b-40ab-9f5a-f9545a27858an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages