# Share Datasets

To share a dataset on ESS-DIVE means that you have given or received permission to **view, edit, or manage** a dataset. Dataset permissions can be changed at any time.&#x20;

Sharing a dataset with other people registered to contribute data on ESS-DIVE will allow them to:&#x20;

* view private datasets,&#x20;
* view status badges,
* change metadata,&#x20;
* add/remove files,&#x20;
* reserve a DOI,
* publish the dataset, and&#x20;
* share the dataset with others

See the [Permission Types](https://docs.ess-dive.lbl.gov/manage-data/share-data-permissions/..#permission-types) section for details on which access level grants each capability.

## How to Share a Dataset

{% hint style="warning" %}
You must be the dataset creator or have **manage** access to share datasets
{% endhint %}

1. On the dataset landing page, select the **Edit** button (Figure 1).
2. Select the **Share** button in the top right corner of the file table (Figure 2).
3. A new window will appear titled **Sharing Options** (Figure 3) which shows you who already has access to the dataset and what permission type they have. By default the dataset creator has manage permissions.
4. **Share the dataset** with new people by searching for their ORCID, first or last names in the search bar\* (Figure 4). Or look up the **project team** name to share with a group.
   * *\*Only people who have logged into ESS-DIVE using their ORCID can be found in the Sharing Options search bar*
5. **Modify the permission type** as needed using the access level dropdown (Figure 5).
6. Review your changes and hit **Save** (Figure 6)**.**
7. When you have finished sharing your dataset, you can exit the edit session. **It is not necessary to hit the Submit Dataset button**.&#x20;

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2FqTU9bBIdifuvSdvhTTTb%2Fselect-edit-button.png?alt=media&#x26;token=4a7e2a20-1a33-499e-a435-9bb7f056b25e" alt=""><figcaption><p><strong>Figure 1:</strong> To share your dataset, open your dataset landing page and click the Edit button</p></figcaption></figure>

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2F9SyyMxhoJDiMebvOG5nm%2Fselect-share-button.png?alt=media&#x26;token=a8c83cd2-2f32-41b7-b655-e8d54cf1fc54" alt=""><figcaption><p><strong>Figure 2:</strong> Select the Share button located to the left of the Add Files button</p></figcaption></figure>

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2FMoY5cwdT9Ejz35NcNLl8%2FShare%20Options%20-%20new%20share%20(2).png?alt=media&#x26;token=dbc2408a-f98a-46a1-a7bd-e3b4988a4bf5" alt=""><figcaption><p><strong>Figure 3:</strong> Review who the dataset is currently shared with</p></figcaption></figure>

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2FUue5qA5M0hOKyRuw1WzA%2FShare%20Options%20-%20add%20perm.png?alt=media&#x26;token=186edcda-d308-4d1e-9047-dd6eb5339599" alt=""><figcaption><p><strong>Figure 4:</strong> Search for your team members using their first or last names. Selecting their names will automatically add them to the list</p></figcaption></figure>

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2FCgtYH0zU7Mttqmili3xZ%2FSshare%20Options%20-%20change%20perm%20(3).png?alt=media&#x26;token=d55e3dbf-96cb-4cff-b80e-c72ddfdc1e53" alt=""><figcaption><p><strong>Figure 5:</strong> Change existing access levels using the dropdown bars in the Access column, if needed.</p></figcaption></figure>

<figure><img src="https://3166205607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgU7GrufgIOpY1Ufd5R%2Fuploads%2Fx1NhnqZ9HZ7dqvBrQoeP%2FShare%20Options%20-%20save%20(1).png?alt=media&#x26;token=c54f6702-0aad-479e-8e80-d5b6c61543cb" alt=""><figcaption><p><strong>Figure 6:</strong> Make sure to save all changes before closing the window and submitting your dataset edits to ESS-DIVE</p></figcaption></figure>

{% hint style="info" %}
**You can also share datasets programmatically using ESS-DIVE's Dataset API.**&#x20;

Visit the [Dataset API Tutorial](https://docs.ess-dive.lbl.gov/contributing-data/data-submission-guidelines/package-service-tutorial#getting-started-with-ess-dive-package-service-1.3) page to learn more about this service. Details on how to  write HTTP requests to (1) change dataset permissions and (2) review access permissions are available via the [Data Package Sharing section](https://api.ess-dive.lbl.gov/#/Data%20Package%20Sharing) of ESS-DIVE's technical documentation page, hosted at <https://api.ess-dive.lbl.gov/>.
{% endhint %}
