Authorize Google Apps Script
When prompted, click Review permissions.

Choose your Google Workspace account.
Select Allow.

For some users, Google will warn that "Google hasn't verified this app". Click Advanced and select Go to Data Steward Admin Tool (unsafe).

Then continue with the above step.