#!/bin/bash
# Get the list of all groups
/Users/dale.courtney/bin/gamadv-xtd3/gam print groups > groups.txt
# Loop through each group and get its security settings
while read -r group; do
echo "Getting security settings for $group"
if /Users/dale.courtney/bin/gamadv-xtd3/gam print group $group security > /dev/null 2>&1; then
/Users/dale.courtney/bin/gamadv-xtd3/gam print group $group security > ~/Downloads/${group}_security.txt
else
echo "No security settings for $group"
fi
done < groups.txt
Dale Courtney
IT Manager
232 N. Almon St. | Moscow, ID | 83843
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAG56vfNiCmwe7fj7Nbozd_W3R9HzMjLJOwfNfbirvx4QxujGqw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp_r2hy052Rfesf114cuXw7Kzhe0fW%3D2bOrD7GD7r0TX5g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAG56vfMGcOde3mYnFUrNcQCM7tDN4FFpWEtS49Wj2E0%2BLwUoaw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_Cz4md%3DckkEDfbuzRVM3crhD%3D5J1QzrFss-GY4DQLPuQ%40mail.gmail.com.