Hello,
I’m writing a script to audit our shared drives.
I use “Drive.Drives.list()” to get the drives, but I can’t find in the API how to get the “shared drives parameters”, is there a way to do it ?
→ my google is in french, i’m not sure that the words “shared drives parameters” are completely correct, i want to get parameters from the popup you get when you “right click” on a shared drive", and select the 3rd option “Parameters of the shared drive”, or something like that
Olivier
Update:
Here is my current code
function audit_MySharedDrives() { var drives=getSharedDrives() drives.forEach(function(d) { console.log(d.getName()) // get drives properties ??? }) function getSharedDrives() { //source: https://yagisanatode.com/get-a-list-of-google-shared-drives-by-id-and-name-in-google-apps-script/#Displaying_more_than_10shared_drives let sharedDrives = Drive.Drives.list() let sharedDrivesItems = sharedDrives.drives // If a next page token exists then iterate through again. while(sharedDrives.nextPageToken){ sharedDrives = Drive.Drives.list( { pageToken:sharedDrives.nextPageToken } ) sharedDrivesItems = sharedDrivesItems.concat(sharedDrives.drives) } return sharedDrivesItems }