Comments (5)
deployed!
Also worth noting that the speed difference between specifying a single field vs having it return all fields is negligible, sometimes even taking longer to return a group with a single field vs just returning all fields:
[I ♥ PS 6.0.2] >_ Measure-Command {Get-GSGroup $groupName -Fields 'description'}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 511
Ticks : 5116080
TotalDays : 5.92138888888889E-06
TotalHours : 0.000142113333333333
TotalMinutes : 0.0085268
TotalSeconds : 0.511608
TotalMilliseconds : 511.608
[8] [STATUS: SUCCESS IN 0:00:00.5163 AT 23:16:24 ON 2018-06-28]
~
[I ♥ PS 6.0.2] >_ Measure-Command {Get-GSGroup $groupName}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 458
Ticks : 4580480
TotalDays : 5.30148148148148E-06
TotalHours : 0.000127235555555556
TotalMinutes : 0.00763413333333333
TotalSeconds : 0.458048
TotalMilliseconds : 458.048
[9] [STATUS: SUCCESS IN 0:00:00.4619 AT 23:16:31 ON 2018-06-28]
~
[I ♥ PS 6.0.2] >_
VS
[I ♥ PS 6.0.2] >_ Measure-Command {Get-GSGroup $groupName -Fields 'description'}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 477
Ticks : 4777180
TotalDays : 5.52914351851852E-06
TotalHours : 0.000132699444444444
TotalMinutes : 0.00796196666666667
TotalSeconds : 0.477718
TotalMilliseconds : 477.718
[10] [STATUS: SUCCESS IN 0:00:00.4823 AT 23:19:11 ON 2018-06-28]
~
[I ♥ PS 6.0.2] >_ Measure-Command {Get-GSGroup $groupName}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 511
Ticks : 5111990
TotalDays : 5.91665509259259E-06
TotalHours : 0.000141999722222222
TotalMinutes : 0.00851998333333333
TotalSeconds : 0.511199
TotalMilliseconds : 511.199
[11] [STATUS: SUCCESS IN 0:00:00.5157 AT 23:19:14 ON 2018-06-28]
~
[I ♥ PS 6.0.2] >_
from psgsuite.
You are absolutely amazing. Thank you so much for such a quick response, and for making a fantastic PS module!
from psgsuite.
@WToorenburghEasyMarkit thanks for the catch!! I'm on it!! Should 100% be supported so let me make sure that can happen (or figure out barriers at the very least!)
from psgsuite.
@WToorenburghEasyMarkit - alright did some digging and found some oddness. The List()
request for Groups in the .NET SDK does have a Fields property, but any attempt to use it after applying the fix returns an invalid field error. Checking on the actual API explorer and it doesn't look like their List method allows specification of Fields like the Get method does
That being said, pushing up a fix in v2.8.1 that blocks use of Fields unless specifying a Group as well via parameter set inclusion to prevent further confusing errors, since Google doesn't appear to support it currently with the List method for Groups
Also worth noting: Fields for Google's API's are always mixed camel case, with the first letter always lower case. So your call would need to look something like this otherwise you'll get similar errors (additional corrections on field names):
$Fields = @("nonEditableAliases", "description", "email", "kind", "name", "directMembersCount")
$Groups = Get-GSGroup -Group mytestgroup -Fields $Fields
from psgsuite.
I'm glad you like it! Thanks again for submitting the issue to let me know about the bug!
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.