user_options
Type: Function · Category: server
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()
| Argument | Type | Description |
|---|---|---|
user |
string (required) | The user to create or update. |
theme |
string | Set the user’s theme. |
timezone |
string | Set the user’s timezone. |
lang |
string | Set the user’s language. |
org |
string | Set the user’s default org id. |
links |
StoredQuery | Set 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. |
default_password |
string | Set the user’s default password for Zip Exports. |
Platforms: macOS, Linux, Windows
Source: vql/server/users/options.go