Git Product home page Git Product logo

Comments (26)

ryanfog avatar ryanfog commented on July 16, 2024 1

Its appears you are onto something..

from psgsuite.

ryanfog avatar ryanfog commented on July 16, 2024 1

That would be awesome this we are a global company with domains like domain.fr and domain.ca etc..

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

Hey @ryanfog - Checking this out now! Apologies for the delay!

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

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:

image

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

@ryanfog check my last answer and let me know if passing $null for the SearchBase parameter fixes this for you!

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

@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.

ryanfog avatar ryanfog commented on July 16, 2024

Nate,

Sorry bad news same error..

image

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

@ryanfog - In your PSGSuite config, do you have your customer ID and domain set?

from psgsuite.

ryanfog avatar ryanfog commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

Gotcha! What's your Preference set to in your config? CustomerID or Domain or not set?

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

And are you trying to list the users for all domains under your customer? or just a single domain's users?

from psgsuite.

ryanfog avatar ryanfog commented on July 16, 2024

[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.

ryanfog avatar ryanfog commented on July 16, 2024

All users and all domains

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

PS - I removed your screenshot since you still had your adminemail showing on the second verbose output 😉

from psgsuite.

ryanfog avatar ryanfog commented on July 16, 2024

Consider this issue resolved, it appears to be the old ID10T error on my part.

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

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.

scrthq avatar scrthq commented on July 16, 2024

I should have an updated version that adds that functionality in by tonight!

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

Just to confirm as well, you were good after setting the CustomerID in your config to (Get-GSUser).CustomerID still, right @ryanfog ?

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

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.

ryanfog avatar ryanfog commented on July 16, 2024

That is correct my config.ini file is updated with the proper customerID retrieved from Google directly.

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

sweet! glad it's sorted!

from psgsuite.

scrthq avatar scrthq commented on July 16, 2024

@ryanfog - added the ability to specify -Domain $otherDomain with v2.5.3!

from psgsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.