I’ve been looking at the Google Apps Script API documentation, and have not been able to find a class or method that can return whether a user looking at a document (not a spreadsheet) is the owner/creator, viewer, or collaborator. Is this possible given this API? If so, which class can this functionality be found in?
Share
The File class has the
getOwnermethod. it’s possible to find the required file by traversing files using the DocList service. Also the class has other methodsgetViewersandgetEditors.