As my association has changed from using Google Drive with common accounts (someone@gmail.com
) to using it with Google Workspace accounts, I have to modify all my scripts so they can work on the new workspace.
From what I understood from this link : Google Script Document Inaccessible Error - creating and attempting to open document in code I need to go through GCP to allow me to make a copy of a document and then modify it.
In order to do this, I need to retrieve various OAuth tokens but for that I need permissions (for example iam.roles.list
or resourcemanager.projects.get
). I can't get these permissions even though I'm an admin (with an associative account so it's free but has paid features).
My question is: why can't I give permissions and how do I give these permissions?
A subsidiary question: Do I really do it right? The GWorkspace method seems extremely complicated compared to the GDrive version for the same result.
Thank you very much for taking the time to read my message, and thank you for your help.
(To avoid any English mistakes, I used deepl : Translated with www.DeepL.com/Translator)