# 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/redivis.organization"><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" %}

```python
# 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="443">Name</th><th>Description</th></tr></thead><tbody><tr><td><a href="organization/organization.dataset"><strong><code>organization.dataset</code></strong></a>(dataset_name[, ...])</td><td>Construct a reference to a dataset in the organization.</td></tr><tr><td><a href="organization/organization.list_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/organization.list_members"><strong><code>organization.list_members</code></strong></a>([max_results[, ...])</td><td>List all members in the organization.</td></tr><tr><td><a href="organization/organization.list_workflows"><strong><code>organization.list_workflows</code></strong></a>([max_results[, ...])</td><td>List all workflows owned by an organization.</td></tr><tr><td><a href="organization/organization.member"><strong><code>organization.member</code></strong></a>(username)</td><td>Construct a reference to a member in the organization.</td></tr><tr><td><a href="organization/organization.secret"><strong><code>organization.secret</code></strong></a>(name)</td><td>Construct a reference to a secret defined by the organization.</td></tr><tr><td><a href="organization/organization.workflow"><strong><code>organization.workflow</code></strong></a>(name)</td><td>Construct a new workflow instance that references a workflow owned by an organization.</td></tr></tbody></table>
