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
234 stars 68 forks source link

Simple Fix? #352

Open Mschram72 opened 3 years ago

Mschram72 commented 3 years ago

Hello,

This is probably a pretty simple fix I'm overlooking but I'm entirely stumped.

I've been using psgsuite for years (incredible work on these cmdlets - has made my job so much easier) and running the cmdlet Get-GSUSER -Filter * in order to pull a full list of users on my domain. This works fine from my admin account.

Recently I've created a service account that can currently pull individual user info (Ex. Get-GSUSER John.smith@MyDomain.com) but if I run with -filter * I get returned a null. I tried giving it new google roles (all identical to my personal account, where this command does run correctly) but still no change.

Is this a simple permissions issue in Gsuite - or do I need to make modifications to the API project, etc?

Thanks,

Buenno commented 3 years ago

Hi,

Did you create a new project or reuse the existing? Did you create a new psgsuite configuration? I would suggest comparing the 2 to begin with, assuming you reused you existing project.

Thanks.