# Sharing a Data Store

This option helps the user to share a Data Store with other user(s) or user group(s). The user can also exclude a user(s) or user group(s) from the rights to access a Data Store using the Exclude User option provided under the Share Data Store dialog box.

## Sharing a Data Store

{% hint style="success" %}
*Check out the illustration on the Share Data Store functionality.*&#x20;
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FhGxO2UtyYn7uv8sG0vhc%2FSharing%20a%20Data%20Store%20V2.mp4?alt=media&token=eb03a6cc-ecd9-4747-b034-514942824ec3>" %}
Sharing a Data Store
{% endembed %}

* Select a ***Data Store*** from the ***Data Stores*** list.
* Click the ***Share Datastore*** icon for the selected Data Store.  &#x20;

<figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FzPjUqFfdk2uFcg8yFO2b%2Fimage.png?alt=media&#x26;token=2e10e0c1-96d2-41fe-be69-374e48ed2292" alt=""><figcaption></figcaption></figure>

* The ***Manage Access*** window opens.
* Select permission using the ***Grant Permissions** section*.&#x20;
* The ***Users***, ***User Groups***, and ***Exclude Users*** tabs appear.
* Search a specific user or user group using the search bar.
* Select user(s) or user group(s) using the ***Users*** or ***User Groups*** tabs.&#x20;
* Click the ***Save*** option.

<figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FZiB7dJOKibteTX7ANd41%2Fimage.png?alt=media&#x26;token=6263d0f2-817f-4f77-9529-7a7330f5b32a" alt=""><figcaption></figcaption></figure>

* A confirmation message ensures that the selected Data Store is shared successfully.
* The selected user(s)/ user group(s) will be listed under the ***Granted Permissions***.

<figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FPAV9KCYZ2GCg0SJR26y1%2Fimage.png?alt=media&#x26;token=c5da9677-0dd9-4acc-8714-5f248c6024a7" alt=""><figcaption></figcaption></figure>

* Navigate to the user account where the Data Store is shared.
* The shared Data Store lists the ***Status*** mentioned with a ***Share*** icon for the user(s) to whom it has been shared.  The Actions may vary based on the selected granted permission for the Data Store.
* The shared ***Data Store*** will have limited ***Action*** permissions.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FVJuNReWJ53gJ1C3t46Rx%2Fimage.png?alt=media&#x26;token=18fcd456-c20c-415c-8a04-991f59706ec3" alt=""><figcaption></figcaption></figure>

<details>

<summary>Actions allowed with the View Permission for a Shared Data Store</summary>

When a data store is shared from User A to User B with *View Permission*, User B can:

* View data store details
* View the permission level of the data connector

</details>

<details>

<summary>Actions allowed with the Edit Permission for a Shared Data Store</summary>

When a data store is shared from User A to User B with Edit Permission, User B can:

* View, edit, and save data store details&#x20;
* View the permission level of the data connector

</details>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> A targeted share user <mark style="color:red;">cannot</mark>* ***re-share** or **delete a** shared Data Store, regardless of the permission level (View or Edit).*
{% endhint %}

## Excluding Users

{% hint style="success" %}
*Check out the illustration on excluding user(s) while sharing a Data Store with the selected user group(s).*&#x20;
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FlVUx3t0w5WAVMXBz1Bxz%2FExcluding%20user%20and%20including%20an%20excluded%20user%20for%20Data%20Store%20share.mp4?alt=media&token=c6cfb33e-826d-4b9d-9d9a-8fe154ddc18c>" %}
Excluding Users and Including an Excluding user to access a Shared Data Store
{% endembed %}

* Navigate to the Manage Access window for a Data Store.
* Select privileges using the checkboxes provided for the Grant Privileges.
* Navigate to the ***User Groups*** tab.
* Select user group(s) using the checkbox.

<figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FHMfHDu8JMsYbjoBqaeEz%2Fimage.png?alt=media&#x26;token=9a5b5b2d-01da-4e76-8b9e-cc3564d4583b" alt=""><figcaption></figcaption></figure>

* Navigate to the ***Exclude Users*** tab.
* Select the users to be excluded from the selected group(s) to access the data store using the checkboxes.
* Click the ***Save*** option.

<figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2F2A85VuFkVLXb3YUdIbcv%2Fimage.png?alt=media&#x26;token=a0e81fe9-6266-4920-911e-3d6500b56328" alt=""><figcaption></figcaption></figure>

* A notification message appears, and the selected user group(s) name will be added under the Granted Permissions section.
* The excluded users will be listed under the ***Excluded Users*** section.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FYzxImd9Bfu6SKYRPZh9y%2Fimage.png?alt=media&#x26;token=4bbcffd0-4bc1-42f5-a270-87866233ef81" alt=""><figcaption></figcaption></figure>

## Including the Excluded User

{% hint style="success" %}
*Check out the illustration on including an excluded user.*&#x20;
{% endhint %}

* Open the ***Manage Access*** window for a shared data Store.
* Navigate to the ***Excluded Users*** list.
* Select a user from the list.
* Click the ***Include User*** icon. &#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2F1ByynQfophHuOKNyCN9F%2Fimage.png?alt=media&#x26;token=c77ad095-3217-487b-b5b7-b1d44605fe32" alt=""><figcaption></figcaption></figure>
* A notification ensures that the privileges are shared with the recently included user from the group.
* The ***Excluded Users*** list gets modified.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FpC1CDJu2XS0b4nZThLYA%2Fimage.png?alt=media&#x26;token=43a0eecf-660f-48d8-a74e-fe45578d7984" alt=""><figcaption></figcaption></figure>

## Revoking Privileges

{% hint style="success" %}
*Check out the illustration on revoking a user's access to a shared Data Store.*&#x20;
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2Fwb76IXxLJQeSDK5UwxpD%2FRevoking%20Privileges%20for%20a%20shared%20Data%20Store%20V2.mp4?alt=media&token=3b42b9f5-65a0-4565-a13e-67e4b268258d>" %}
Revoking Privileges for a Shared Data Store
{% endembed %}

* Navigate to the  ***Manage Access*** window.
* The ***Granted Permissions*** will be listed.
* Select a user or user group from the displayed list.
* Click the ***Revoke Privileges*** icon.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FOdWqEOfe6SvYFEDUB3nN%2Fimage.png?alt=media&#x26;token=a355da6f-61b2-4df3-9b8b-b4d826c5b023" alt=""><figcaption></figcaption></figure>
* A notification message appears, and the granted permissions list gets modified as the targeted user/ user group gets removed from the list.  &#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FqHUmwU1BSZ8tJAzMvcIT%2Fimage.png?alt=media&#x26;token=59a4af70-92fc-4a82-989a-000fb466db78" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

* *Users can share the Data Store with a Single group or Multiple Groups* *using the **user group** tab. The steps to share a Data Store with User Group(s) are similar to those mentioned above for sharing a Data Store with User(s).*
* *The **Exclude User** tab helps to exclude the user(s) from the rights to access a Data Store, if it is already shared. Only the users of the selected user group with whom it has been shared will be listed under the **Exclude User** tab.*
  {% endhint %}
