How can I get an file ID from the gam API in Powershell?

526 views
Skip to first unread message

Shmolio Programma

unread,
Jul 26, 2018, 9:35:19 AM7/26/18
to GAM for G Suite

How can I get an file ID from the gam API in Powershell?

Ross Scroggs

unread,
Jul 26, 2018, 10:24:22 AM7/26/18
to google-ap...@googlegroups.com
Shmolio,

To get a fileId you need a user/owner and a file title.

$ gam user testuser1 show filelist query "title='Doc 3'" id

Getting files for test...@rdschool.org...

 Got 1 files for test...@rdschool.org...

Owner,id

test...@rdschool.org,xx-ZM50ZyJD8-nBQ_BwIyudIzOs-MCvYHVhXu4Mozzzz


Ross


On Thu, Jul 26, 2018 at 6:35 AM Shmolio Programma <ma...@davirro.org> wrote:

How can I get an file ID from the gam API in Powershell?

--
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/8cf23363-0735-47b3-9b16-2922760279a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages