class PropertiesService method .getUserProperties()

PropertiesService is the Apps Script service.

.getUserProperties() is the method name you will see after a dot in your code.

What it does

Returns key-value storage private to the current user.

Why it's used

  • Save per-user preferences like last filter or theme.
  • Keep each teammate's options separate on a shared sheet.

Common errors

  • Forgetting parentheses on getUserProperties. Write PropertiesService.getUserProperties(), not PropertiesService.getUserProperties or getUserProperties by itself.
  • Skipping dots between chained calls. Each step needs a dot, like PropertiesService.getUserProperties().
  • Adding spaces where they do not belong. Write PropertiesService.getUserProperties(), not PropertiesService .getUserProperties(), PropertiesService.getUserProperties (), or PropertiesService . getUserProperties().
  • Wrong capitalization. Use PropertiesService and getUserProperties, not propertiesservice or getuserproperties.

Explore

Related methods

Better Sheets tutorials

Built a Cookie Clicker Clone in Google Sheets

Built a Cookie Clicker Clone in Google Sheets

I built a clone of Cookie Clicker, live on YouTube. Watch the full 1 hou...