--
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/b0885527-2d1c-47a7-b0f5-7d62e66e52c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ian,What more do you want from GetUserShareCounts.py?Ross
On Mon, Sep 10, 2018 at 3:56 PM Ian Hyzy <ian....@mavenwave.com> wrote:
I'd like to audit who users are using external sharing with in our domain. For example, I'd like to scan every user's Drive files and count how many times a doc was shared with @domain.com, then get a list of how often docs were shared with each domain. For example, one line might say: 50 users shared 200 files with Domain.com.--I did an export with all of the permission and I'm having trouble figuring out a way to do this nicely as each permission entry appears as a new set of columns and my Excel-fu isn't quite good enough to figure out how to suss out the data I need. I looked into the Drive Query API selections linked on the documentation page but nothing jumped out at me as an obvious solution. I'm also looking at modifying GetUserShareCounts.py from the gam-scripts repo as it looks to get pretty close but I was hoping for something simpler.Right now, I was able to manually sort/filter to get a list of domains but that's it. The .csv is also 500MB so I have no way to load the entire thing in Sheets, only Excel/Libreoffice.If anyone has an idea of how to accomplish this, I'm all ears!Thanks,Ian
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/b0885527-2d1c-47a7-b0f5-7d62e66e52c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
PS C:\Users\ianhy> python GetUserShareCounts.py filelistperms.csv usersharecounts.csv
Traceback (most recent call last):
File "GetUserShareCounts.py", line 80, in <module>
outputCSV.writeheader()
File "C:\Users\ianhy\AppData\Local\Programs\Python\Python36-32\lib\csv.py", line 144, in writeheader
self.writerow(header)
File "C:\Users\ianhy\AppData\Local\Programs\Python\Python36-32\lib\csv.py", line 155, in writerow
return self.writer.writerow(self._dict_to_list(rowdict))
TypeError: a bytes-like object is required, not 'str'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/b0885527-2d1c-47a7-b0f5-7d62e66e52c1%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/a77ecd3e-6c40-42e7-9f76-de5e89f39113%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.