Currently, I am developing a JavaScript tool within Google Apps Script to analyze various document properties such as the validity of links and correct permissions settings. To achieve this, I have been utilizing the API outlined in https://developers.google.com/apps-script/reference/drive/drive-app for tasks like searching for files by ID, validating permissions, and managing files on Google Drive. However, I encountered challenges when dealing with "Shared Drives" while interacting with this API.
Some issues include:
- The root folder of a Shared Drive returns "Drive" instead of its actual name when using
,<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="34594d53465b414474505b59555d5a1a575b59">[email protected]</a>
- Even though
has "Manager" access to the Shared Drive, some methods like<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6d00140a1f02181d2d0902000c04e00c040004e00corknotionsofeoyrpeurekaediaonceeme.com" target="_blank" rel="noopener noreferrer noopener nofollow">[email protected]</a>
return NONE andfolder.getAccess('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="67eeebfbefe9fdedabfcfbd3dbcbda8bcddcdcdeec3cfcd">[email protected]</a>')
folder.getViewers()
is empty, - There are situations where folders within Shared Drives do not consistently appear in the
DriveApp.getFolders()
iterator.
The second point mentioned above is currently impeding my progress. Can anyone provide insights into whether there is an alternative API that I should be leveraging or if this issue is a bug that needs to be reported? Additionally, I am seeking documentation regarding the limitations associated with using the Drive
API functionalities within a Shared Drive context.