# Organization

## *class* <mark style="color:purple;">Organization</mark>

Used to list and reference resources (e.g., datasets) within an organization.

## Constructors

<table data-header-hidden><thead><tr><th width="342">Method</th><th>Description</th></tr></thead><tbody><tr><td><a href="redivis/redivisusdorganization"><strong><code>redivis$organization</code></strong></a>(user_name)</td><td>Construct a reference to an organization based on its (case-insensitive) username.</td></tr></tbody></table>

## Examples

{% tabs %}
{% tab title="Basics" %}

```r
library("redivis")

# Reference the Demo organization (https://redivis.com/Demo)
organization <- redivis$organization("demo")

# List all datasets
datasets <- organization$list_datasets()

# Create a reference to a specific dataset
dataset <- organization$dataset("ghcn_daily_weather_data")
```

{% endtab %}
{% endtabs %}

## Methods

<table data-header-hidden><thead><tr><th width="421">Name</th><th>Description</th></tr></thead><tbody><tr><td><a href="organization/organizationusddataset"><strong><code>organization$dataset</code></strong></a>(name[, ...])</td><td>Construct a reference to a dataset in the organization.</td></tr><tr><td><a href="organization/organizationusdlist_datasets"><strong><code>organization$list_datasets</code></strong></a>([max_results])</td><td>List all datasets in the organization.</td></tr><tr><td><a href="organization/organizationusdlist_workflows"><strong><code>organization$list_workflows</code></strong></a>([max_results])</td><td>List all workflows in the organization.</td></tr><tr><td><a href="organization/organizationusdsecret"><strong><code>organization$secret</code></strong></a>(name)</td><td>Create a reference to a secret defined by the organization.</td></tr><tr><td><a href="organization/organizationusdworkflow"><strong><code>organization$workflow</code></strong></a>(name)</td><td>Construct a reference to a workflow in the organization.</td></tr></tbody></table>
