User
class User
Users own datasets and workflows. Various methods allow you to construct and list the datasets, workflows, and secrets of a user.
Constructors
redivis.user(name)
Return a User, given their username.
Return the currently authenticated User.
Examples
const user = redivis.user('jane');
const dataset = user.dataset('my_dataset'); // -> Returns a Dataset
const workflow = user.workflow('my_workflow'); // -> Returns a Workflow
await user.listDatasets(); // -> Returns an array of Datasets
await user.listWorkflows(); // -> Returns an array of Workflows
const me = await redivis.currentUser();
console.log(me.name);Attributes
name
The user's username.
properties
An object containing the API resource representation of the user. This will be fully populated after calling get.
Methods
User.dataset(name[, options])
Return a Dataset owned by the user.
Check whether the user exists.
User.get()
Fetch the user's metadata, populating user.properties.
User.listDatasets([maxResults])
List the user's Datasets.
User.listWorkflows([maxResults])
List the user's Workflows.
User.secret(name)
Return a Secret of the user.
User.workflow(name)
Return a Workflow owned by the user.
Was this helpful?

