This is saying that the spreadsheet is not owned by a domain. If you are not using a Workspace account with domains, then you should not bother with that command and just remove that line in the script.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/a34f78f7-f051-4d3b-97e0-df7f498c158dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/006401d9a60c%24889f9b40%2499ded1c0%24%40gmail.com.