Automation task with Appscript on effective user

Hello 

does anybody nows if an Appscript linked as a task in the automation can be executed not with the AppOwner ID but with the ID of the user effectively using the App?

Thanks

 

Werner

Solved Solved
0 2 112
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Werni 

You can't.

ON the documentation it is said this way:

Call Apps Script from an automation - AppSheet Help

Aurelien_0-1678264344670.png

However, if you need to keep track of the user calling the script, you may enter the USEREMAIL() expression in a parameter of the function called, and use it to store this value somewhere.

For reference:

USEREMAIL() - AppSheet Help

 

View solution in original post

2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Werni 

You can't.

ON the documentation it is said this way:

Call Apps Script from an automation - AppSheet Help

Aurelien_0-1678264344670.png

However, if you need to keep track of the user calling the script, you may enter the USEREMAIL() expression in a parameter of the function called, and use it to store this value somewhere.

For reference:

USEREMAIL() - AppSheet Help

 

Thanks Aurelien. I will develop via a local file the automation actions in the GDrive of the user. Would be an interesting feature request.

Werner

Top Labels in this Space