ReadonlyaccountAlways "User", so an Account can be narrowed without a request.
The user's account name, which is part of every URL under it.
Creates a new, empty dataset owned by this account.
Name for the new dataset, which becomes part of its URL.
Optionalds: AddDatasetOptions
Metadata to create it with. accessLevel defaults to the instance's own default.
A new dataset has no graphs; load data into it with Dataset.importFromFiles, Dataset.importFromUrls or Dataset.importFromDataset.
Creates a new saved query owned by this account.
Name for the new query, which becomes part of its URL.
The query text plus the dataset and service type to run it against; both are required, because a saved query is stored together with what it queries.
Creates a new story owned by this account.
Name for the new story, which becomes part of its URL.
Optionalargs: NewStory | NewStory_deprecated
Initial content and access level. A story created without content is empty and can be filled in later.
Creates a group owned by this user.
Name for the group, which becomes part of its URL.
Optionalinfo: NewGroup
Metadata to create it with, including its access level.
If the name is already taken by any account. Use User.ensureGroup when you want the existing group.
IncompatibleError against an instance older than 26.4.300, or older than
26.8.100 when info.accessLevel is set — a 26.7.x server drops the key and would create a
public group instead.
The dataset with this name, created first if this account does not have one yet.
Name of the dataset to get or create.
OptionalnewDs: AddDatasetOptions
Metadata to create it with, used only when it does not exist yet.
The group with this name, created first if it does not exist yet.
OptionalnewGroup: NewGroupThe idempotent form of User.createGroup. As elsewhere, newGroup applies only when
the group is created, so this never edits an existing group.
If the group exists and newGroup.accessLevel disagrees with the access level it
already has — rather than silently leaving it as it was.
IncompatibleError against an instance older than 26.4.300, or older than
26.8.100 when newGroup.accessLevel is set.
The story with this name, created first if this account does not have one yet.
OptionalnewStory: NewStory | NewStory_deprecatedThe dataset with this name, owned by this account.
The dataset's name, as it appears in its URL.
This account's datasets, as an iterator that fetches pages as you consume it.
One group this user belongs to.
If this user is not a member of a group with that name. Use App.getGroup to reach a
group without going through its membership.
IncompatibleError against an instance older than 26.4.300.
The groups this user belongs to.
IncompatibleError against an instance older than 26.4.300.
This user's metadata: their name, display name and profile fields.
This account's saved queries, as an iterator that fetches pages as you consume it.
The saved query with this name, owned by this account.
The query's name, as it appears in its URL.
This account's stories, as an iterator that fetches pages as you consume it.
The story with this name, owned by this account.
The story's name, as it appears in its URL.
Whether this account has a dataset with this name, without throwing when it does not.
Whether this account has a saved query with this name, without throwing when it does not.
Whether this account has a story with this name, without throwing when it does not.
Copies a dataset from another instance into this account.
The dataset to copy, obtained from the App it lives on.
For moving content between deployments. Destructive: opts.overwrite must be true, and a
dataset of the same name in this account is replaced rather than merged into.
If the source is on the same instance as this account — importing is only supported between different instances. Use Dataset.importFromDataset to copy within one.
Copies a saved query from another instance into this account.
Destructive in the same way as AccountBase.importDataset. The query's dataset must already exist in this account, since a query without its data cannot run.
Copies a story from another instance into this account.
Destructive in the same way as AccountBase.importDataset. A story is a shell around saved queries, so import those first or its elements will have nothing to show.
Sets which datasets, stories and queries are pinned to this account's profile.
Replaces the pinned list rather than adding to it, and the array's order becomes the display order. To add one, read AccountBase.getPinnedItems first and pass the result back with your addition; passing an empty array unpins everything.
Runs saved queries as one batch job and writes their results into a dataset.
The queries to run and the dataset to write to. source is only needed when the
queries do not all target the same dataset.
The way to materialise query results at scale, rather than paging through them in process. The
returned Pipeline has started but not finished — wait for it with
Pipeline.waitForPipelineToFinish, or follow it through opts.onProgress.
Replaces this account's profile image.
Path to an image file, or its contents.
Changes this account's profile fields.
Only the fields you pass are changed; the rest are left alone. Pinned items are not settable here — use AccountBase.pinItems.
A Group widens this to accept accessLevel as well, since only a group has one.
A TriplyDB user account.
Remarks
Obtain one with App.getUser for a specific user, or App.getAccount when the account may be either a user or a Group. Users are never constructed directly, and cannot be created or deleted through this library.
Everything a user shares with a group — datasets, queries, stories — is described on Account.
Example: The user your token belongs to
Example: Another user, then one of their datasets