FWIW, your array will return every homedir, even the 'fake' ones from
users nobody and daemon etc. Probably a more elegant way to do this, but
I couldn't quite get the array/delete - so instead we could grep out the
OS and service accounts: for user ...
Druva provided me with a script that had options to query Jamf, EC, or a
local file to populate the email address. Testing so far using the Jamf
approach has been successful - overall very straightforward execution,
and a well-crafted and documented ...
For anything that could be in use with a client or other third party,
like Zoom, be careful using the Install Automatically option. A
traditional policy will still give you much more control over when to
install an update (outside local business hour...