"showownedby others" returns gam.py errors

35 views
Skip to first unread message

Thomas

unread,
Feb 14, 2019, 2:34:49 PM2/14/19
to GAM for G Suite
When running "gam user sysadmin show filelist select $RootFolderId showownedby others name id owners"  the following error is returned.


PS C:\GAMADV-X> C:\GAMADV-X\OwnerChange.ps1
gam : Traceback (most recent call last):
At C:\GAMADV-X\OwnerChange.ps1:6 char:1
+ gam user sysadmin show filelist select $RootFolderId showownedby othe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
  File "gam.py", line 37513, in ProcessGAMCommand
  File "gam.py", line 28341, in printFileList
  File "gam.py", line 28192, in ProcessArgument
  File "gam.py", line 27989, in _getShowOwnedBy
AttributeError: 'NoneType' object has no attribute 'find'

I determined that the issue is caused when I use "others" if I set to "any" the operation appears to complete successfully.


Any thoughts on this one?

Thanks!
Thomas

Ross Scroggs

unread,
Feb 14, 2019, 3:11:47 PM2/14/19
to google-ap...@googlegroups.com
Thomas,

It's a bug. I will release a fix this evening.

Ross


Follow Agosto: Twitter / Blog / LinkedIn
Learn More: www.agosto.com



CONFIDENTIALITY
The information transmitted herein is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you receive this email in error, please contact the sender and delete or destroy this message and all copies.

--
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/2a6c3566-f820-43b8-b41e-5e91ada06d93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Thomas Blade

unread,
Feb 14, 2019, 3:14:29 PM2/14/19
to google-ap...@googlegroups.com
Dang!  Thanks Ross!!  you rock!!

If you're at Google NEXT this year, I'll buy you a frosty beverage!

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

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

Ross Scroggs

unread,
Feb 14, 2019, 3:15:03 PM2/14/19
to google-ap...@googlegroups.com
Thomas,

In the meantime do this:
gam user sysadmin show filelist select $RootFolderId fullquery "not 'me' in owners" showownedby others name id owners

Ross

On Thu, Feb 14, 2019 at 11:34 AM Thomas <thomas...@agosto.com> wrote:
Follow Agosto: Twitter / Blog / LinkedIn
Learn More: www.agosto.com



CONFIDENTIALITY
The information transmitted herein is intended only for the addressee and may contain confidential, proprietary and/or privileged material. Any unauthorized review, distribution or other use of or the taking of any action in reliance upon this information is prohibited. If you receive this email in error, please contact the sender and delete or destroy this message and all copies.

--
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/2a6c3566-f820-43b8-b41e-5e91ada06d93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Ross Scroggs

unread,
Feb 18, 2019, 2:00:16 PM2/18/19
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages