SCRT-HQ/PSGSuite

Get-GSDrive should allow both -DriveId and -UseDomainAdminAccess parameters

MattPennerVVUSD opened this issue · 0 comments

Sometimes you may have the DriveId for a shared drive you would like info on, but are not a member of.

Right now using both the DriveId and UseDomainAdminAccess parameters are not allowed. Intellisense clearly does not prompt you the instant you add -DriveId. If you attempt to do so anyway you get the following error:

Get-GSDrive  -User user@domain.com -DriveId ValidGoogleDriveId -UseDomainAdminAccess

Get-GSDrive : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Get-GSDrive  -User user@domain.com -DriveId ValidGoogleDriveId...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-GSDrive], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Get-GSDrive

Using the Drives Google API Explorer this works just fine so it is an allowable call.