I am attempting to use the undelete command but it doesn’t seem to be working. Just to back up, in the last 3 days, we have loaded 120,000 users into our domain using GAM scripts and we have deleted 120,000 users. Today I wanted to undelete a user so I used the following command:
Gam undelete user John...@mydomain.com
I get the following and then nothing.
Looking up UID for john...@mydomain.com
I have to Ctrl-C to break out and back to a command prompt. Could it be the sheer number of deleted users that is causing the issue?
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/433e8317-5f88-489a-b687-a0ce0fa4002c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes. The undelete API call must know the I'd of the user to undelete (because you may have deleted the same email address multiple times). The only way to get the id is to list out all deleted users which will take a very long time in your case. I'd suggest listing them all out with:gam print users deleted_only id todriveThis should give you a spreadsheet of deleted users and their id. Then you can undelete a user with:gam undelete user id:<id>And save on the (very expensive) user email -> id look up.Jay
On Thu, Aug 9, 2018, 6:06 PM 'Scott Bedrick' via GAM for G Suite <google-ap...@googlegroups.com> wrote:
--I am attempting to use the undelete command but it doesn’t seem to be working. Just to back up, in the last 3 days, we have loaded 120,000 users into our domain using GAM scripts and we have deleted 120,000 users. Today I wanted to undelete a user so I used the following command:
Gam undelete user John...@mydomain.com
I get the following and then nothing.
Looking up UID for john...@mydomain.com
I have to Ctrl-C to break out and back to a command prompt. Could it be the sheer number of deleted users that is causing the issue?
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
$ gam version
GAM 4.60 - https://git.io/gam
$ gam undelete user id:123456789
Undeleting account for 123456789
ERROR: 400: Bad Request - badRequest
$ gam undelete user 123456789
Looking up UID for 1234...@rdschool.org...
ERROR: could not find deleted user with that address.
Ross
Thanks for the quick reply JayI am still not able to get the undelete to work. I ran the report and can see two fields, promarEmail and id, I assume that I need to pass the ID to the undelete command but I'm not having any luck. can you give me an example of the command? I assume that I need to somehow pass the unique ID number I have tried:gam undelete user j...@domain.com id:000044444440000orgam undelete user id:00000444444400000orgam undelete user 00000004444444000000Gam keeps appending the domain to the end of the ID
On Thursday, August 9, 2018 at 6:22:47 PM UTC-4, Jay Lee wrote:
Yes. The undelete API call must know the I'd of the user to undelete (because you may have deleted the same email address multiple times). The only way to get the id is to list out all deleted users which will take a very long time in your case. I'd suggest listing them all out with:gam print users deleted_only id todriveThis should give you a spreadsheet of deleted users and their id. Then you can undelete a user with:gam undelete user id:<id>And save on the (very expensive) user email -> id look up.Jay
On Thu, Aug 9, 2018, 6:06 PM 'Scott Bedrick' via GAM for G Suite <google-ap...@googlegroups.com> wrote:
--I am attempting to use the undelete command but it doesn’t seem to be working. Just to back up, in the last 3 days, we have loaded 120,000 users into our domain using GAM scripts and we have deleted 120,000 users. Today I wanted to undelete a user so I used the following command:
Gam undelete user John...@mydomain.com
I get the following and then nothing.
Looking up UID for john...@mydomain.com
I have to Ctrl-C to break out and back to a command prompt. Could it be the sheer number of deleted users that is causing the issue?
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/433e8317-5f88-489a-b687-a0ce0fa4002c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e9d1445e-4dd0-4498-bcf4-509dd621a77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If it helps, I’m using 3.7 and had no issue with undelete using this format:
gam undelete user user@domain
Looking up UID for …
Undeleting account for …
However, I’m not sure if it worked or if it needs more time.
---
Roberto Ullfig - rul...@uic.edu
Systems Administrator
Enterprise Architecture and Development | ACCC
University of Illinois - Chicago
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS8AR914h9KjRW2qFCiMxvZEj8JANYhuULik6%3DKF_R-Syg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7a1875c4-6de6-45f6-a6c2-d3061e42d337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Scott,What does this do: gam info user id:12345Ross
On Fri, Aug 10, 2018 at 10:08 AM 'Scott Bedrick' via GAM for G Suite <google-ap...@googlegroups.com> wrote:
I am not able to use the standard--gam undelete user user@domainbecause I have recently deleted 120,000 IDs so that command just sit's for ever. I need to undelete the email address by it's unique ID. That's where I am having issues.I just updated to gam 4.60, but the command is still failinggam undelete user id:12345ERROR: 400: Invalid Imput: 12345 - invalidThanks Scott
On Thursday, August 9, 2018 at 6:06:02 PM UTC-4, Scott Bedrick wrote:I am attempting to use the undelete command but it doesn’t seem to be working. Just to back up, in the last 3 days, we have loaded 120,000 users into our domain using GAM scripts and we have deleted 120,000 users. Today I wanted to undelete a user so I used the following command:
Gam undelete user John...@mydomain.com
I get the following and then nothing.
Looking up UID for john...@mydomain.com
I have to Ctrl-C to break out and back to a command prompt. Could it be the sheer number of deleted users that is causing the issue?
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7a1875c4-6de6-45f6-a6c2-d3061e42d337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
$ gam delete user id:112268042003882501048
Deleting account for 112268042003882501048
$ gam undelete user id:112268042003882501048
Undeleting account for 112268042003882501048
How long ago was the user deleted?
Ross
I get the following:
$ ./gam info user id:106414075101073000000ERROR: 404: Resource Not Found: userKey - userNotFound
On Friday, August 10, 2018 at 1:17:54 PM UTC-4, Ross Scroggs wrote:
Scott,What does this do: gam info user id:12345Ross
On Fri, Aug 10, 2018 at 10:08 AM 'Scott Bedrick' via GAM for G Suite <google-ap...@googlegroups.com> wrote:
I am not able to use the standard--gam undelete user user@domainbecause I have recently deleted 120,000 IDs so that command just sit's for ever. I need to undelete the email address by it's unique ID. That's where I am having issues.I just updated to gam 4.60, but the command is still failinggam undelete user id:12345ERROR: 400: Invalid Imput: 12345 - invalidThanks Scott
On Thursday, August 9, 2018 at 6:06:02 PM UTC-4, Scott Bedrick wrote:I am attempting to use the undelete command but it doesn’t seem to be working. Just to back up, in the last 3 days, we have loaded 120,000 users into our domain using GAM scripts and we have deleted 120,000 users. Today I wanted to undelete a user so I used the following command:
Gam undelete user John...@mydomain.com
I get the following and then nothing.
Looking up UID for john...@mydomain.com
I have to Ctrl-C to break out and back to a command prompt. Could it be the sheer number of deleted users that is causing the issue?
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7a1875c4-6de6-45f6-a6c2-d3061e42d337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Ross Scroggs
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/2f914ca6-b8a7-441c-9801-566ad7fa2803%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
num_emails_exchanged | integer | The total number of emails exchanged. This is the total of num_emails_sent and num_emails_received . |
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CABknu0yxYWmAWZOo_O-3hyBgtyTfia%2BG6%2Bn9UJ3kTp6W8nU-wg%40mail.gmail.com.