user_options

Function

ArgDescriptionType
userThe user to create or update.string (required)
themeSet the user’s theme.string
timezoneSet the user’s timezone.string
langSet the user’s language.string
orgSet the user’s default org id.string
linksSet the user’s default links. This should be a list of dicts with columns: type, text, url, icon_url, new_tab, encode, parameter, method, disabled.StoredQuery
default_passwordSet the user’s default password for Zip Exports.string

Description

Update and read the user GUI options

Example

The following will set the user language to French, dark theme and add a sidebar link named Foobar. The default password for zip exports will also be set to foobar.

SELECT user_options(user=whoami(),
       lang="fr",
       theme="veloci-dark",
       links=[dict(
          text="Foobar",
          url="https://www.google.com",
          type="sidebar",
          new_tab=TRUE), ],
        default_password="foobar")
FROM scope()