Once I was looking through Google Drive API docs and I have seen a picture of Google Drive UI and a sidebar on the right, I guess it allowed to edit custom file properties. I need to let the user add some data to a file (like an email), so I could get it with Java SDK later.

Is it possible to edit custom properties right in Google Drive UI or that was my fantasy? Can you point out to a guide? Perhaps, it involves Google Apps Script or something.

2 Answers 2


Google Drive UI doesn't include a built-in way for end-users to edit custom properties but they could use Google Apps Script's Advanced Drive Service .

Adding custom properties

The following example demonstrates how to add a custom property to a file. Unlike Apps Script's document properties, Drive's custom file properties can be accessed outside of Apps Script and by other applications (if the visibility is set to PUBLIC).

function addCustomProperty(fileId) {
  var property = {
    key: 'department',
    value: 'Sales',
    visibility: 'PUBLIC'
  Drive.Properties.insert(property, fileId);



I have built a UI for adding custom properties to Google Docs . You can checkout the extension on chrome store. I also made a walkthrough video which can be viewed on youtube.

However, I understand google drive stores more than docs file. It also stores file like google sheet. You can view the code on github. I think you can make it work with google sheet or anything else with minor modification.

  • The link to Chrome Store is broken.
    – pppery
    Jul 5, 2023 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.