Get Labelled Files in GDrive

Viewed 148

I wrote a code in Google Appscript to index all files in GDrive and try to identify if those files are labelled or not.

For summary, the Labels feature only available in GWorkspace business account and only the admin of the entreprise who have edit access of this feature.

I tried to use seacrhFiles(param) however the "Labels" isn't recognized by q string query Google, do we have another method to do it ?

Thank you,

2 Answers

Features that are part of workspace business accounts. Are not part of the public Google drive api.

You can tell by looking at the file resource object. It does not contain a field called label.

Your not going to find a method in the google drive api that will return a label on a file.

Even a Google Document resource object doesn't have it.

There may be a restricted api just for workspace users you would have to ask. But its not something i have heard of.

Related