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

Get-GSDrivePermission UseDomainAdminAccess #329

Open SCUR0 opened 3 years ago

SCUR0 commented 3 years ago

I'm trying to get shared drive ACLs for all drives.

I can get all shared drives with Get-GSDrive -UseDomainAdminAccess but there isn't any support for ACL unless you already know a user that is the member of the shared drive.

Get-GSDrive -UseDomainAdminAccess | foreach { $_ | Get-GSDrivePermission} will result in 404 responses (file not found) but if I do Get-GSDrive -user USERNAME | foreach { $_ | Get-GSDrivePermission} it works correctly.

There is no method to pull ACL unless you already know a user who is part of the shared drive.