GAM Command line to assign ownership of all the files/folders and subfolders to a specific account

5,040 views
Skip to first unread message

Andrea PALAZZI

unread,
Sep 14, 2017, 9:56:53 AM9/14/17
to GAM for G Suite
I have a Departmental Google Drive Account where all the file and subfolders are under a specific master folder.
Do you have a command that is capable to say, all the file and subfolders inside the FolderNumber1 have to be owned by AccaountA?

Waiting you support

Kind regards

AP

Ross Scroggs

unread,
Sep 14, 2017, 3:52:52 PM9/14/17
to google-ap...@googlegroups.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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/16744678-bf7e-4be6-80f5-9413087e4ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

PALAZZI, Andrea

unread,
Sep 14, 2017, 5:41:26 PM9/14/17
to google-ap...@googlegroups.com

Dear Ross,

I'm not an expert of Google API, could you please just write a couple of example of the command that I have to run.


The usual gam is:

gam accountA tranfer ownership xxxxxxxfolderidxxxxxx accountB


Could you please type the command that will assign ownership of a specific folders with all his subfolders/files to a specific accountA 


Where I can find the binary to be downloaded?


Like the takeownership microsoft command.


Kind regards


AP




From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Ross Scroggs <ross.s...@gmail.com>
Sent: Thursday, September 14, 2017 9:52 PM
To: google-ap...@googlegroups.com
Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account
 
Andrea,

My advanced Gam can do this: https://github.com/taers232c/GAMADV-X
GAMADV-X is a free, open source command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily. GAMADV-X is a rewrite ...
GAMADV-X - Manage Google G Suite - Extended


Ross

On Thu, Sep 14, 2017 at 6:56 AM, Andrea PALAZZI <Pala...@unaids.org> wrote:
I have a Departmental Google Drive Account where all the file and subfolders are under a specific master folder.
Do you have a command that is capable to say, all the file and subfolders inside the FolderNumber1 have to be owned by AccaountA?

Waiting you support

Kind regards

AP

--
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-apps-manager@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/16744678-bf7e-4be6-80f5-9413087e4ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

Ross Scroggs

unread,
Sep 14, 2017, 7:01:23 PM9/14/17
to google-ap...@googlegroups.com
Andrea,

The simple case is: gam user accountA claim ownership xxxxxxxfolderidxxxxxx preview
All of the files and folders under xxxxxxxfolderidxxxxxx will have their ownership transferred to accountA

Ross

On Thu, Sep 14, 2017 at 2:41 PM, PALAZZI, Andrea <Pala...@unaids.org> wrote:

Dear Ross,

I'm not an expert of Google API, could you please just write a couple of example of the command that I have to run.


The usual gam is:

gam accountA tranfer ownership xxxxxxxfolderidxxxxxx accountB


Could you please type the command that will assign ownership of a specific folders with all his subfolders/files to a specific accountA 


Where I can find the binary to be downloaded?


Like the takeownership microsoft command.


Kind regards


AP




Sent: Thursday, September 14, 2017 9:52 PM

Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account
Andrea,

My advanced Gam can do this: https://github.com/taers232c/GAMADV-X
GAMADV-X is a free, open source command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily. GAMADV-X is a rewrite ...

GAMADV-X - Manage Google G Suite - Extended


Ross
On Thu, Sep 14, 2017 at 6:56 AM, Andrea PALAZZI <Pala...@unaids.org> wrote:
I have a Departmental Google Drive Account where all the file and subfolders are under a specific master folder.
Do you have a command that is capable to say, all the file and subfolders inside the FolderNumber1 have to be owned by AccaountA?

Waiting you support

Kind regards

AP

--
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+unsubscribe...@googlegroups.com.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--

PALAZZI, Andrea

unread,
Sep 14, 2017, 7:17:16 PM9/14/17
to google-ap...@googlegroups.com
Where I can download your tool for windows?

Kind regards

AP


From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Ross Scroggs <ross.s...@gmail.com>
Sent: Friday, September 15, 2017 1:01:17 AM
To: google-ap...@googlegroups.com
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

Eric Dannewitz

unread,
Sep 14, 2017, 7:18:18 PM9/14/17
to google-ap...@googlegroups.com

Ross Scroggs

unread,
Sep 14, 2017, 7:35:07 PM9/14/17
to google-ap...@googlegroups.com

On Thu, Sep 14, 2017 at 4:18 PM, Eric Dannewitz <edann...@auhsdschools.org> wrote:
On Sep 14, 2017, at 4:17 PM, PALAZZI, Andrea <Pala...@unaids.org> wrote:

Where I can download your tool for windows?

Kind regards

AP


Sent: Friday, September 15, 2017 1:01:17 AM
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

--
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+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

--
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-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

--
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-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--

PALAZZI, Andrea

unread,
Sep 15, 2017, 2:38:27 AM9/15/17
to google-ap...@googlegroups.com

Dear Ross,

Ok seams that the capability is there, but is possible to perform the preview only on the file into that specific folder? Even if I would like to claim ownership on a folder where there are 3 folders and 100 files the tool would like to enumerate all

 

 

C:\GAM-ADV>gam user newacco...@unaids.org claim ownership 0ByYZsx7_XYasfmpDZUFBa01mMWxHa

WlRbmNoSU9RY19TMDdNel9VU3hpNi1XbX preview

User: i...@unaids.org, Claim Ownership 1 Drive File/Folder

Getting all Drive Files/Folders for i...@unaids.org

Got 460 Drive Files/Folders for i...@unaids.org...

Got 920 Drive Files/Folders for newacco...@unaids.org...

Got 1380 Drive Files/Folders for newacco...@unaids.org...

Got 1840 Drive Files/Folders for newacco...@unaids.org...

Got 2300 Drive Files/Folders for newacco...@unaids.org...

Got 2760 Drive Files/Folders for newacco...@unaids.org...

Got 3220 Drive Files/Folders for newacco...@unaids.org...

Got 3680 Drive Files/Folders for newacco...@unaids.org...

Got 4140 Drive Files/Folders for newacco...@unaids.org...

Got 4255 Drive Files/Folders for newacco...@unaids.org...

Etc….

 

Kind regards

 

AP

 

From: google-ap...@googlegroups.com [mailto:google-ap...@googlegroups.com] On Behalf Of Ross Scroggs
Sent: 15 September 2017 01:35
To: google-ap...@googlegroups.com
Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account

 

On Thu, Sep 14, 2017 at 4:18 PM, Eric Dannewitz <edann...@auhsdschools.org> wrote:

On Sep 14, 2017, at 4:17 PM, PALAZZI, Andrea <Pala...@unaids.org> wrote:

 

Where I can download your tool for windows?

 

Kind regards

 

AP

 


From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Ross Scroggs <ross.s...@gmail.com>
Sent: Friday, September 15, 2017 1:01:17 AM
To: google-ap...@googlegroups.com
Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account

 

Andrea,

 

The simple case is: gam user accountA claim ownership xxxxxxxfolderidxxxxxx preview

All of the files and folders under xxxxxxxfolderidxxxxxx will have their ownership transferred to accountA

 

Ross

On Thu, Sep 14, 2017 at 2:41 PM, PALAZZI, Andrea <Pala...@unaids.org> wrote:

Dear Ross,

I'm not an expert of Google API, could you please just write a couple of example of the command that I have to run.

 

The usual gam is:

gam accountA tranfer ownership xxxxxxxfolderidxxxxxx accountB

 

Could you please type the command that will assign ownership of a specific folders with all his subfolders/files to a specific accountA 

 

Where I can find the binary to be downloaded?

 

Like the takeownership microsoft command.

 

Kind regards

 

AP

 

From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Ross Scroggs <ross.s...@gmail.com>
Sent: Thursday, September 14, 2017 9:52 PM
To: google-ap...@googlegroups.com
Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account

 

Andrea,

 

My advanced Gam can do this: https://github.com/taers232c/GAMADV-X

GAMADV-X is a free, open source command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily. GAMADV-X is a rewrite ...

 

GAMADV-X - Manage Google G Suite - Extended

 

 

Ross

On Thu, Sep 14, 2017 at 6:56 AM, Andrea PALAZZI <Pala...@unaids.org> wrote:

I have a Departmental Google Drive Account where all the file and subfolders are under a specific master folder.

Do you have a command that is capable to say, all the file and subfolders inside the FolderNumber1 have to be owned by AccaountA?

 

Waiting you support

 

Kind regards

 

AP

 

--

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.



 

--

Ross Scroggs

 

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.

To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.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.


For more options, visit https://groups.google.com/d/optout.



 

--

Ross Scroggs

 

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.

To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.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.

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



 

--

Ross Scroggs

--

You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.

To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

Ross Scroggs

unread,
Sep 17, 2017, 10:46:47 PM9/17/17
to google-ap...@googlegroups.com

Chuck W. Williams

unread,
Oct 4, 2017, 11:09:33 AM10/4/17
to GAM for G Suite
HI Ross,

I am running the same command..
for example--gam user accountA claim ownership xxxxxxxfolderidxxxxxx preview and I am getting Claim Ownership Failed: Not Found...I am running GAMADV-X version 4.48.13...any ideas..thanks.

Regards


On Thursday, September 14, 2017 at 7:01:23 PM UTC-4, Ross Scroggs wrote:
Andrea,

The simple case is: gam user accountA claim ownership xxxxxxxfolderidxxxxxx preview
All of the files and folders under xxxxxxxfolderidxxxxxx will have their ownership transferred to accountA

Ross
On Thu, Sep 14, 2017 at 2:41 PM, PALAZZI, Andrea <Pala...@unaids.org> wrote:

Dear Ross,

I'm not an expert of Google API, could you please just write a couple of example of the command that I have to run.


The usual gam is:

gam accountA tranfer ownership xxxxxxxfolderidxxxxxx accountB


Could you please type the command that will assign ownership of a specific folders with all his subfolders/files to a specific accountA 


Where I can find the binary to be downloaded?


Like the takeownership microsoft command.


Kind regards


AP




Sent: Thursday, September 14, 2017 9:52 PM

Subject: Re: [GAM] GAM Command line to assign ownership of all the files/folders and subfolders to a specific account
Andrea,

My advanced Gam can do this: https://github.com/taers232c/GAMADV-X
GAMADV-X is a free, open source command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily. GAMADV-X is a rewrite ...

GAMADV-X - Manage Google G Suite - Extended


Ross
On Thu, Sep 14, 2017 at 6:56 AM, Andrea PALAZZI <Pala...@unaids.org> wrote:
I have a Departmental Google Drive Account where all the file and subfolders are under a specific master folder.
Do you have a command that is capable to say, all the file and subfolders inside the FolderNumber1 have to be owned by AccaountA?

Waiting you support

Kind regards

AP

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



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--

Ross Scroggs

unread,
Oct 4, 2017, 11:18:56 AM10/4/17
to google-ap...@googlegroups.com
Chuck,

Do this: gam user accountA show fileinfo xxxxxxxfolderidxxxxxx

What do you get?

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsubscribe...@googlegroups.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-manager+unsubscribe...@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.



--

--
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-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Chuck Williams

unread,
Oct 4, 2017, 11:26:04 AM10/4/17
to google-ap...@googlegroups.com
Hi Ross,

I am getting the folder info..is there something specific I should look for that would cause the Claim Ownership Failed: error?  Thanks a ton

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
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-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--
Chuck Williams
TCS-WTC-Messaging
Technical Architect
Certified G Suite Administrator & Deployment Specialist
501 Brooker Creek Blvd, Oldsmar, FL 34677
Mobile - 813-362-3488




Nicole Qu

unread,
May 16, 2019, 5:42:45 PM5/16/19
to GAM for G Suite
Also getting Claim Ownership Failed: error, any solution?

On Wednesday, October 4, 2017 at 11:26:04 AM UTC-4, Chuck Williams wrote:
Hi Ross,

I am getting the folder info..is there something specific I should look for that would cause the Claim Ownership Failed: error?  Thanks a ton
On Wed, Oct 4, 2017 at 11:18 AM, Ross Scroggs <ross....@gmail.com> wrote:
Chuck,

Do this: gam user accountA show fileinfo xxxxxxxfolderidxxxxxx

What do you get?

Ross
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.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-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.



--

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



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



--
Chuck Williams
TCS-WTC-Messaging
Technical Architect
Certified G Suite Administrator & Deployment Specialist
501 Brooker Creek Blvd, Oldsmar, FL 34677

Ross Scroggs

unread,
May 16, 2019, 5:56:15 PM5/16/19
to google-ap...@googlegroups.com
Nicole,

W need more information in order to help you.
What command are you executing and what is the output?

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.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.



--

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



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



--
Chuck Williams
TCS-WTC-Messaging
Technical Architect
Certified G Suite Administrator & Deployment Specialist
501 Brooker Creek Blvd, Oldsmar, FL 34677
Mobile - 813-362-3488




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

For more options, visit https://groups.google.com/d/optout.


--

Nicole Qu

unread,
May 17, 2019, 9:52:28 AM5/17/19
to GAM for G Suite
Hi Ross,
Here is what I got wheh run claim ownership:
gam user nic...@xxxxxx.ninja claim ownership 1jgb7geHGd2_f-LNZLoFFGYRqRjuX0C0M
User: nic...@xxxxxx.ninja, Claim Ownership 1 Drive File/Folder
  User: nic...@xxxxxx.ninja, Claim Ownership Drive Folder: Test-Folder (1jgb7geHGd2_f-LNZLoFFGYRqRjuX0C0M)
    User: nicole@ xxxxxx.ninja, Claim Ownership 1 User
      User: nicole@ xxxxxx.ninja, Claim Ownership Not Performed 1 Drive File/Folder from User: dd.n...@xxxxxx.ninja
        User: nicole@ xxxxxx.ninja, Drive Folder: Sub-test-folder (1G1e0cP6zhYDAB5W9ImvFn7TMNQ3m61lE), Ownership Not Claimed: User: dd.ninja1@ xxxxxx.ninja in other domain. (1/3)
        User: nicole@ xxxxxx.ninja, Drive File: Hello-test2 (1sdcC4nh8CMEMkiVC4mpTgncXMsSIO3up043pj0OukFA), Ownership Not Claimed: User: dd.ninja1@ xxxxxx.ninja in other domain. (2/3)
        User: nicole@ xxxxxx.ninja, Drive File: Hello-test1 (1vT-osWsH6YNXUl6E1_V4ftYAnEyLqD9DGVD5n6iwdus), Ownership Not Claimed: User: dd.ninja1@ xxxxxx.ninja in other domain. (3/3)


Here is the version of gamadv:

Python 2.7.16 64-bit final
google-api-python-client 1.7.8
httplib2 0.12.1
oauth2client 4.1.3
Linux-4.14.104+-x86_64-with-debian-9.9 x86_64
Path: /home/nicole/bin/gamadv/gamadv-x

Thanks,
Nicole


Ross Scroggs

unread,
May 17, 2019, 10:16:04 AM5/17/19
to google-ap...@googlegroups.com
Nicole,

Do the following:
$ gam info domain
Customer ID: C03abcd66
Primary Domain: xxxxxx.ninja
...
$ gam config customer_id C03abcd66 domain xxxxxx.ninja save
gam user nic...@xxxxxx.ninja claim ownership 1jgb7geHGd2_f-LNZLoFFGYRqRjuX0C0M

Ross

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

Nicole Qu

unread,
May 17, 2019, 12:31:09 PM5/17/19
to GAM for G Suite
Works like a charm, thank you so much!

Valerie Belles (DOTComm)

unread,
May 21, 2019, 4:00:46 PM5/21/19
to GAM for G Suite
Good afternoon, 

I also am attempting to change ownership from ownerName to accountA (this is the account taking ownership of the folder and all sub files/folders), and am having some difficulties with error messages. 

I have been working with this command:      gam user accountA claim ownership xxxxxxxxxfolderidxxxxxx preview and am getting this error message: 
User: accountA, Claim Ownership 1 Drive File/Folder
  User: accountA, Drive File/Folder: xxxxxxxxxfolderIDxxxxxxxx, Claim Ownership Failed: Not Found
NewOwner,OldOwner,type,id,title


Previously you suggested trying to run the show fileinfo command. At first I received an error message when trying this: 
C:\GAMADV-X>gam user accountA show fileinfo xxxxxxfileIDxxxxxxx
User: accountA, Show 1 Drive File/Folder
  User: accountA, Drive File/Folder ID: xxxxxfileIDxxxxx, Show Failed: Does not exist


However, when I change the user to the actual owner in the show fileinfo, I get all of the folder and file information. 
That looks like this:   gam user ownerName show fileinfo xxxxxxxfolderidxxxxxxxx
The results were an impressive listing. 

I am using version GAMADV-X 4.83.01.  I appreciate any support.

Kind Regards, 
Valerie

Ross Scroggs

unread,
May 21, 2019, 4:21:44 PM5/21/19
to google-ap...@googlegroups.com
Valerie,

accountA can't claim a file it can't see; when you did: gam user ownerName show fileinfo xxxxxxxfolderidxxxxxxxx
what rights (probably none) does accountA have to the file?
In that case you have to have ownerName transfer ownership to accountA.

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.



--
Ross Scroggs

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/_c-6yw0HGgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.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.



--

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

For more options, visit https://groups.google.com/d/optout.


--
Message has been deleted

Ross Scroggs

unread,
Jun 5, 2020, 3:22:33 PM6/5/20
to google-ap...@googlegroups.com
Mario,

You said "When I try this command" but you didn't show the command, that would be helpful.

Ross

On Fri, Jun 5, 2020 at 11:50 AM bffive <mariopa...@gmail.com> wrote:
I'll keep plugging away to see if I can figure this out, but my district has a primary domain, student.xxxxx.org and subdomain xxxxx.org where xxxxx is the same value. All staff are xxxxx.org. When I try this command, it says Ownership Not Claimed: User: us...@xxxxx.org in other domain. I'm trying to transfer ownership from one staff member to another. Thoughts?

best
~mario

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


--
Reply all
Reply to author
Forward
0 new messages