Comments (5)
Directions are mostly unclear and do need updating, but if you're able to mostly get through it and are able to run get-gsuser
to return information about your admin account, try the following:
I was having this exact issue tonight on one of several domains that I work with. My problem was my CustomerID was incorrect. Double check your CustomerID in your PSGSuiteConfig.
Assuming you can run Get-GSUser
, you should be able to find your CustomerID.
Then run Set-PSGSuiteConfig -ConfigName NameOfYourConfig -CustomerID YourCustomerID -Preference CustomerID
Then try running Get-GSUserList again. Should be all set.
from psgsuite.
Thanks for the tip but I am wondering how to do this if the config is not working? If you can run Get-GSUser
you acutally already made it. My problem is that no config worked. BTW you can obtain it from https://admin.google.com/ac/accountsettings/profile. Would be good to acutally mention this in the guide...
However, after hours and hours of investigation I finally made it working. Here some tips for anyone who have to use it in the future:
- Do not run this module in VSCode! It will not work!
- Create the project manually regardless if you are super admin or not. Add Admin and License SDK and click on [Click here to create a new project with the following API's enabled](https://console.developers.google.com/flows/enableapi?apiid=admin,appsactivity,contacts,driveactivity.googleapis.com,licensing,gmail,calendar,classroom.googleapis.com,docs.googleapis.com,drive,sheets.googleapis.com,slides.googleapis.com,groupssettings,chat.googleapis.com,people.googleapis.com,tasks). It will run into an error but magically enable something in your app. Without it, it will not work!
- Add all the scopes from the manual. I acutally just need 3 scopes for my use case and can´t see a reason so much permissions are required but guess what. Whithout all, it will not work!
- Use P12 certificate path. The module also support JSON but you guess it. With JSON it will not work!
- In case you finally made this running use
Export-PSGSuiteConfig
! and store it in a secure place. - In case you get any error when running
Set-PSGSuiteConfig
delete the config file from - C:\Users<username>\AppData\Local\powershell\SCRT HQ\PSGSuite\Configuration.psd1. The cmdlet also saves wrong configs and you can´t overwrite all settings...
Hope that helps anyone and that this guide could be updated to avoid the hard time people have that need to use it.
from psgsuite.
FYI - I run the module in VSCode without any issues, so I'm not sure what you're problem is in that regard.
from psgsuite.
Yes could be but at least for me some commands I run into errors on VSCode while they work in Powershell.
from psgsuite.
For more info - In VSCode I get the following specifically when running it in the PowerShell Integrated Console:
Get-GSGmailProfile : The value supplied is not valid, or the property is read-only. Change the value, and then try again.
At line:1 char:1
+ Get-GSGmailProfile
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-GSGmailProfile
If I run the same in the powershell terminal it works fine.
I've had this in the past with other modules, I assume due to the way the PowerShell extension handles modules.
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
- 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.