characters that need escaping and what do you escape with (single / double quotes)

478 views
Skip to first unread message

Robert Gulick

unread,
Jun 23, 2022, 2:02:32 PM6/23/22
to GAM for Google Workspace
I am working on a web interface for staff to maintain various aspects of their Google accounts including passwords. The gam commands will be dynamically built and executed after various safeguards.

Is there a list of special characters that need escaping within a GAM command?
What is the escape character?
Does it matter if the the value is double or single quoted?

For example:

gam.exe update user Som...@someplace.com password "fun~-+{}|;>,." changepassword on suspended off

Only looking at all of the fun keyboard special characters.

Thank you for any guidance or a link to documentation.

Ross Scroggs

unread,
Jun 23, 2022, 2:10:58 PM6/23/22
to google-ap...@googlegroups.com
Robert,

How are you going to execute the gam command?
The special quoting is used in the command line (terminal, Command Prompt) to identify the individual arguments.
If you're calling GAM from the web app, you're generally going to be providing a list of arguments so no quoting is necessary (or desired).

Contact me directly via Meet/Zomm to discuss.

Ross


--
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/f56bb1b9-98fd-4941-9e71-f872289b4c4cn%40googlegroups.com.


--

Robert Gulick

unread,
Jun 23, 2022, 2:19:13 PM6/23/22
to GAM for Google Workspace
The MSSQL server on the back end builds the series of gam commands and drops them into a windows powershell file. Then the powershell file is picked up and executed. Unless there is a better way of course.

Ross Scroggs

unread,
Jun 23, 2022, 2:32:59 PM6/23/22
to google-ap...@googlegroups.com

Gulick, Ed.D., Robert

unread,
Jun 23, 2022, 2:53:38 PM6/23/22
to google-ap...@googlegroups.com
Exactly what I needed. Thank you.

Robert T. Gulick, Ed.D.
Director of Technology
Work: 419-473-8321
3505 W. Lincolnshire BLVD
Board Office - Room 201
Toledo, OH 43606
 www.wls4kids.org


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/56eR6fYCgNk/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS_%2BZeqw-q%3DyVaNXOCMFJStpQnDiJX1KUn75cWMySbbnSg%40mail.gmail.com.


Reply all
Reply to author
Forward
0 new messages