在 google 应用程序脚本中,google 如何选择必须在其中创建文档的帐户

In google app script how google is choosing the account in which the doc must be created

我正在创建一个 google 应用程序脚本,它将在用户的驱动器中创建一个 google 文档。

在这种情况下,当用户使用多个帐户登录 google 时,应用脚本如何确定从哪个帐户访问它。 感谢您的帮助。

Session.getActiveUser().getEmail()

如果用户使用 gmail 帐户登录,这将不起作用。

https://developers.google.com/apps-script/reference/base/user