Catching potential issues updating a group using ACTIONCSV and PREVIEW

33 views
Skip to first unread message

Tony Bramell

unread,
Sep 1, 2026, 11:20:18 AMSep 1
to GAM for Google Workspace
Greetings, everyone.
I'm stuck on something and would like some input, please.
I am adding members to a group from a csv containing an email address.  I want to preview what Google would do in order to catch possible issues when the operation runs  - as in "Member already exists", or "Condition not met."  I am using the following command to generate preview data:

gam redirect csv previewactionfile.csv update group gro...@domain.com add member preview actioncsv ema...@domain.com

The previewactionfile.csv contains this:
group,email,role,action,message
gro...@domain.com,ema...@domain.com,MEMBER,Added,Preview

I then import the csv (I'm using powershell) to check for possible issues and proceed based on the issue or add the member to the group if there are no issues.  The problem I am having is the preview data doesn't match what the actual command produces.  For example, when I run:

gam update group gro...@domain.com add member ema...@domain.com

I receive this:
Group: gro...@domain.com, Add 1 Member
  Group: gro...@domain.com, Member: ema...@domain.com, Role: MEMBER, Add Failed: Condition not met

I'm expecting the preview data to contain "Add Failed: Condition not met"
Can anyone provide insight as to what I am doing wrong or am I expecting something that does not get produced?

I'm running GAM 7.48.03 on Windows 11.

Thanks for your time.


*** Zekiah Technologies, Inc. Email Confidentiality Notice ***
The contents of this email and any attachments are intended solely for the addressee(s) and may contain information that is sensitive, confidential, proprietary or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, disseminating or storage of this message or its attachments is strictly prohibited. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by replying to this email and then permanently delete this message and any attachments. Any opinions or views expressed in this message belong to the sender and do not necessarily represent those of Zekiah Technologies, Inc. Finally, it is your responsibility as the recipient to check the email and any attachments for malicious software. The sender is not liable for any errors, omissions, or viruses in the email or its attachments.

Ross Scroggs

unread,
Sep 1, 2026, 11:26:21 AMSep 1
to google-ap...@googlegroups.com
The preview is just showing what adds/deletes are going to be made; it doesn't know what each API call is actually going to do.

Ross
----
Ross Scroggs



--
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 visit https://groups.google.com/d/msgid/google-apps-manager/34948b32-51f0-4a30-9531-f2cac72ec212n%40googlegroups.com.

Tony Bramell

unread,
Sep 1, 2026, 11:36:13 AMSep 1
to google-ap...@googlegroups.com
10-4.  
Thanks Ross.

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/4DZcIEIqIOY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/C29904D0-7D77-404A-9D90-D66596204C2A%40gmail.com.


--


Tony Bramell
Network Administrator
Zekiah Technologies, Inc.
Software Engineering and Geospatial Technologies
M: 240-320-2970
www.zekiah.com
Reply all
Reply to author
Forward
0 new messages