Comments (5)
Yup! You will want to use the -Where_IsAMember
parameter on Get-GSGroupList
and pass the target's email address as the value, i.e.:
Get-GSGroupList -Where_IsAMember "[email protected]"
from psgsuite.
Thank you for the quick reply. This works, but it slows down the processing quite a bit. Do you know of a way to download the entire group membership record in one request and then check against it?
from psgsuite.
There's no way to do that unfortunately (limitation of Google's API's). The only way to go about pulling every group's member list would be to pull the list of groups and loop through them all, pulling the member list for each. Depending on the amount of users and groups, this way could be faster than pulling the Where_IsAMember
for each user.
I do something similar in my org with just the in-scope groups that need to be synced (about 60-70 groups); I'll pull the memberlist for the group and generate the list of users that should be in it (i.e. pull AD group membership or reference a user database for an application), then I'll compare the two and adjust the group membership list to match the user list. Not the most ideal situation, but it's the best way that I've found to work around the limitations placed by Google's API.
Maybe one day they'll include a Members and MemberOf property on the group itself, but that's just a hope at this point.
from psgsuite.
I understand. I will fetch the list of groups and then the members of each group. This would definitely be much quicker for my purposes than a separate request for each user. We have about 1,000 users but only a handful of groups. Thank you!
from psgsuite.
Perfect then!
No problem!
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.