Benjamin:
I can’t recall a way to do this, but in your own story, you state that you don’t even want that. Because you said yourself that you can’t guarantee you always want the last row.
Traditionally CSV tools either ignore the first row (or not optionally) or use the first row for field labels (GAM does this) but processes every row in the data set.
What you want is to test each row in the data set to see if you need to perform a task or not.
Then what you need to do is regularly purge the list of new employees, so that you don’t have to go through the “whole thing” each time.
If I’m not mistaken, Python proper has modules that can read data from a google sheet. So, what I would do is write a small Python wrapper script that uses the data from the employee list Google sheet to test if a user has been created in Google, and if not create it.
Your Python script should just call GAM commands from the shell and use the output to test the result of a “get user info” or something like that to see if the user existed.
Consult GAM’s documentation to see what the query result would be if the user did not exist and then match against that.
I my judgement this is easier (for me at least) if I download the google sheet as a local csv file which greatly simplifies my wrapper script.
Hope this helps
--
Rance Hall
Application Specialist
ESU 10
Some days are better, some days are worse.
Look for the blessing instead of the curse.

From:
google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Benjamin Wexler <benjami...@gmail.com>
Date: Thursday, July 7, 2022 at 11:17 PM
To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: [GAM] Anyway to tell gam to look at last row in a csv?
[EXTERNAL EMAIL]
Is anybody aware of a way to tell gam to look at the last row of data in a google sheet. For new employees the data goes to a google sheet but I don't need all the data to be run, just the last row (and possibly any data after that.
--
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/76c5a8e3-b20d-4114-819a-6ade46bd95adn%40googlegroups.com.
Is anybody aware of a way to tell gam to look at the last row of data in a google sheet. For new employees the data goes to a google sheet but I don't need all the data to be run, just the last row (and possibly any data after that.
--
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/76c5a8e3-b20d-4114-819a-6ade46bd95adn%40googlegroups.com.