Comments (26)
Its appears you are onto something..
from psgsuite.
That would be awesome this we are a global company with domains like domain.fr and domain.ca etc..
from psgsuite.
Hey @ryanfog - Checking this out now! Apologies for the delay!
from psgsuite.
Can you try running the following to see if you get a different behavior? I have a feeling the default SearchBase value may be causing some headaches for your org size:
$users = Get-GSUser -Filter * -SearchBase $null -Verbose
This should give you some verbose feedback showing the exact filter being sent with the command. Screenshot showing the differences:
from psgsuite.
@ryanfog check my last answer and let me know if passing $null
for the SearchBase parameter fixes this for you!
from psgsuite.
@ryanfog FYI - I removed the default value for SearchBase
in v2.5.0. Still pending confirmation that this was the source of the issue for you though, let me know if either v2.5.0's update fixes you or if setting the SearchBase
value to $null
on an earlier version does the same!
from psgsuite.
Nate,
Sorry bad news same error..
from psgsuite.
@ryanfog - In your PSGSuite config, do you have your customer ID and domain set?
from psgsuite.
I do have a customer ID listed and one of the primary domains of the 40 or so we have listed in Google. if we need to do a screen share or something I am open to that
from psgsuite.
Gotcha! What's your Preference set to in your config? CustomerID or Domain or not set?
from psgsuite.
And are you trying to list the users for all domains under your customer? or just a single domain's users?
from psgsuite.
[Variables]
;Add all persistent or environment specific variables here
AdminEmail=[email protected]
Preference=CustomerID
CustomerID=108427614290562006643
ConfigName=PSGSuiteConfig
Domain=domain.com
P12KeyPath=C:\Users\fogler\Documents\PSGSuite\SecertSauce.p12
AppEmail=[email protected]
ServiceAccountClientID=308d85bab6e33c25fed6103225f6e2e2481e320d
from psgsuite.
All users and all domains
from psgsuite.
can you try setting your CustomerID to "my_customer" as a test, then rerunning to see if any difference is made?
# Save the current customer ID
$currentCustomerID = (Show-PSGSuiteConfig).CustomerID
# Set the config to use the generic my_customer value
Set-PSGSuiteConfig -CustomerID my_customer
# Try pulling users again (Verbose may show where it's hanging)
$users = Get-GSUser -Filter * -Verbose
# Revert your config back to normal
Set-PSGSuiteConfig -CustomerID $currentCustomerID
from psgsuite.
if the above works, then it may indicate the wrong CustomerID is stored in your config OR that Google really doesn't like using the CustomerID there and prefers my_customer
instead.
Next step would be to ensure that the customer ID wasn't the result of an odd copy/paste or something via this command to pull your admin user account and the customer ID property directly from there:
Set-PSGSuiteConfig -CustomerID (Get-GSUser).CustomerID
from psgsuite.
side note - I think that you should be able to specify a domain as well to list all users from, as currently Get-GSUserListPrivate only allows pulling the full customer list OR the domain set in the config (if Preference is set to Domain)
from psgsuite.
Sweet!!!
Try running the command in my previous message to set your CustomerID directly from the value returned by Get-GSUser for your AdminEmail:
Set-PSGSuiteConfig -CustomerID (Get-GSUser).CustomerID
$users = Get-GSUser -Filter * -Verbose
from psgsuite.
PS - I removed your screenshot since you still had your adminemail showing on the second verbose output 😉
from psgsuite.
Consider this issue resolved, it appears to be the old ID10T error on my part.
from psgsuite.
lol, you're good! no dumb moves, just continual learning experiences. Glad it's sorted!!
I'm still going to add some updates to Get-GSUser to allow specific domain listing as well, as I'm sure it will be useful for users like you who manage multiple G Suite domains!
from psgsuite.
I should have an updated version that adds that functionality in by tonight!
from psgsuite.
Just to confirm as well, you were good after setting the CustomerID in your config to (Get-GSUser).CustomerID
still, right @ryanfog ?
from psgsuite.
you should be using the actual CustomerID in your config and not the my_customer
value if you can avoid it, just want to make sure it's working once set exactly still
from psgsuite.
That is correct my config.ini file is updated with the proper customerID retrieved from Google directly.
from psgsuite.
sweet! glad it's sorted!
from psgsuite.
@ryanfog - added the ability to specify -Domain $otherDomain
with v2.5.3!
from psgsuite.
Related Issues (20)
- Additional Reports Since Last Edited HOT 1
- Send-GmailMessage: Special characters not displayed as expected in HTML Body HOT 1
- Inconsistent Get-GSUser "IsEnrolledIn2Sv" field results when multiple users are returned HOT 1
- Update-GSChromeOSDevice - Wipe devices User Profile Only HOT 6
- PowerShell Constrained Language mode HOT 1
- Setup Guide Unclear / Not up to Date HOT 5
- Dynamically Generating Functions for Slide/Doc/Sheet updates
- Create Documents and Presentations
- 2.37.0 release is too big for Azure Automation
- Add option to enable conversation history HOT 1
- Licensing Data out of date HOT 4
- Still being developed?
- Add Last Known Network to Get-GSChromeOSDevice HOT 8
- Get-GSGmailSignature ... Update-GSGmailSignature HOT 1
- Update-GSUser support for unarchiving HOT 2
- Update-GSUserSecuritySettings -User User -AllowLessSecureApps -$True
- Set group labels via CloudIdentity API
- I am getting error in gsuite assement
- Initial Setup Instructions Need Updating (Here's what worked for me) HOT 1
- Implement retries with exponential backoff for long running commands like Get-GSDriveFileList
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psgsuite.