I\'m new to GAS and I struggle with the permission system.
I\'m a normal Google drive user and I started a spreadsheet and tried to add some code to it. My code is worki
Use installable trigger instead and write your own "onEdit" function (with a different name) that you bind to your installable trigger.
https://developers.google.com/apps-script/guides/triggers/installable#g_suite_application_triggers
This solved the issue for me.