SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
235 stars 67 forks source link

[Issue] Get-GSTeamDrive not paginating through results #196

Closed scrthq closed 5 years ago

scrthq commented 5 years ago

image

Thanks, @jeremymcgee73!

scrthq commented 5 years ago

Working: image

queks commented 5 years ago

Sorry to jump in, but i tried using: Get-GSTeamDrivesList -Filter * but i get an error. Is this related?

On Thu, May 30, 2019 at 1:31 PM Nate Ferrell notifications@github.com wrote:

Working: [image: image] https://user-images.githubusercontent.com/12724445/58610747-3e9efc00-8272-11e9-9158-b87cc9568fd0.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/196?email_source=notifications&email_token=AIEAEMQZFL4YHZVPKTQGUN3PX5RDPA5CNFSM4HQWMD4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWRMZYY#issuecomment-497208547, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEAEMTLYFZLSHVY2GLPJ5DPX5RDPANCNFSM4HQWMD4A .

--

Samuel QUEK IT Associate Director Taipei American School 800 Chung Shan N. Rd., Section 6 | Taipei | Taiwan ROC 11152 Tel: 886-2-2873-9900 ext 286 www.tas.edu.tw

TAS is Green: Please consider the environment before printing this email.

--

Confidentiality Notice: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

scrthq commented 5 years ago

Hey @queks - That's actually invalid search syntax for Drive. That being said, just run Get-GSTeamDrive to get the desired results in a much shorter command 😄

queks commented 5 years ago

But that lists only Team Drives that I am part of. As an admin, I want to find them all, is there a parameter for that?

On Thu, May 30, 2019 at 2:05 PM Nate Ferrell notifications@github.com wrote:

Hey @queks https://github.com/queks - That's actually invalid search syntax for Drive https://developers.google.com/drive/api/v3/search-shareddrives. That being said, just run Get-GSTeamDrive to get the desired results in a much shorter command 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/196?email_source=notifications&email_token=AIEAEMWHOUINVWAEVT73Y2TPX5VCNA5CNFSM4HQWMD4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWRONKY#issuecomment-497215147, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEAEMTMSJ3XWW5LXOPPHDTPX5VCNANCNFSM4HQWMD4A .

--

Samuel QUEK IT Associate Director Taipei American School 800 Chung Shan N. Rd., Section 6 | Taipei | Taiwan ROC 11152 Tel: 886-2-2873-9900 ext 286 www.tas.edu.tw

TAS is Green: Please consider the environment before printing this email.

--

Confidentiality Notice: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

scrthq commented 5 years ago

hey @queks - You're in luck! One of the items added with v2.28.0 was a -UseDomainAdminAccess switch to Get-GSDrive/Get-GSTeamDrive/Get-GSTeamDrivesList. Update when possible!

image

queks commented 5 years ago

You da man!

On Sat, Jun 1, 2019 at 2:42 AM Nate Ferrell notifications@github.com wrote:

hey @queks https://github.com/queks - You're in luck! One of the items added with v2.28.0 was a -UseDomainAdminAccess switch to Get-GSDrive/Get-GSTeamDrive/Get-GSTeamDrivesList. Update when possible!

[image: image] https://user-images.githubusercontent.com/12724445/58727429-eff47d80-83a9-11e9-89c1-0aceb02e67d5.png

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/196?email_source=notifications&email_token=AIEAEMQZHYGDNFFU6AY3CR3PYFWSPA5CNFSM4HQWMD4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWWB52I#issuecomment-497819369, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEAEMWNYOSVLB3V33QX3NLPYFWSPANCNFSM4HQWMD4A .

--

Samuel QUEK IT Associate Director Taipei American School 800 Chung Shan N. Rd., Section 6 | Taipei | Taiwan ROC 11152 Tel: 886-2-2873-9900 ext 286 www.tas.edu.tw

TAS is Green: Please consider the environment before printing this email.

--

Confidentiality Notice: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

scrthq commented 5 years ago

:heart: Let me know if you have any issues with it! I think there are a few other Drive commands that support that same switch that I still need to investigate.