ReadonlyaccountAlways "Group", so an Account can be narrowed without a request.
The group'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.
Adds a user to this group.
The user to add.
"member" by default; "owner" also allows managing the group itself.
If the user is already a member. Use Group.changeRole to change their role.
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.
Changes what a member is allowed to do in this group.
An existing member.
Their new role.
The group's members, as they now stand.
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 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.
This group's metadata: its name, display name, access level and profile fields.
This group's members and the role each holds.
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 group: an account shared by several users.
Remarks
Obtain one with App.getGroup, or create one with User.createGroup or User.ensureGroup. Groups are never constructed directly.
Everything a group shares with a user — datasets, queries, stories — is described on Account.
Example: Get a group, then one of its datasets
Example: Create a group on first run