> For the complete documentation index, see [llms.txt](https://docs.powerdevbox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerdevbox.com/dev-tools/power-devbox-chromium-extensions/share.md).

# Share

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FuBLQ2YkJQDpIWtuRAnNx%2Fshare%20v2%20512.png?alt=media&amp;token=dfa422f9-dd3e-470e-95bd-9d98cb8b7e8b" alt="" width="256"><figcaption></figcaption></figure>

If the Power DevBox Share icon is red then it has not connected to the Power Platform.

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FlEA14UatjPMgAorjB10s%2Fimage.png?alt=media&amp;token=1387d49d-b5eb-40f7-a013-7a231cf7ee81" alt=""><figcaption></figcaption></figure>

Refresh the page and the icon should lose the red background.

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FJF9eVXl0985Wh8bYJuqX%2Fimage.png?alt=media&amp;token=7e9d591a-f3ce-44a7-9bbf-63e4d20a95a5" alt=""><figcaption></figcaption></figure>

Clicking on the icon will open the menu.

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FwvGmA8lhNA5vK1CFUujn%2Fimage.png?alt=media&amp;token=464a8521-9d0f-42ae-803a-cd818f372116" alt="" width="360"><figcaption></figcaption></figure>

### Inputs

There are 6 inputs for Power DevBox Share

* Components
* Action
* Share Permissions
* Share Type
* Share To
* Component

#### Components

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2F8tL7lRhqCQGrZSiBLOtb%2Fimage.png?alt=media&amp;token=a9de5679-2d35-4ee1-af95-691f04e7d84d" alt="" width="335"><figcaption></figcaption></figure>

Currently only Environment Variables, Connection References, Custom Connectors, Flows, and AI models are supported.

Solution Contents will share all of the above that are in the selected solution

#### Action

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2Fqq4TFr8GZESOeJYfdPXX%2Fimage.png?alt=media&amp;token=a2ef69b4-d85b-4da0-88bb-25f08f39fa16" alt="" width="336"><figcaption></figcaption></figure>

You can Share the component/solution, Change Owner, or Stop Sharing.

#### Share Permissions

Sharing Permissions is only for sharing, not for change owner or Stop Sharing. There are the following permissions, that can be used individually or stacked with commas

* ReadAccess
* WriteAccess
* AppendAccess
* AppendToAccess
* CreateAccess
* DeleteAccess
* ShareAccess
* AssignAccess

#### Share Type

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FdPz6VveaCNWGwa6ppPSz%2Fimage.png?alt=media&amp;token=a47bb19a-1732-46c3-82f8-f05d372b40ab" alt=""><figcaption></figcaption></figure>

There are 2 share types, user or team. Both required to be added to the relevant table before (systemusers/teams).

#### Share To

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FTqd6kQgHTzJ5U9HwEtzY%2Fimage.png?alt=media&amp;token=90a47a65-baf6-4b82-af34-906c8183179e" alt=""><figcaption></figcaption></figure>

To share with a user use their upn (user principle name) email address. For teams the team name from the teams table is required.

#### Component Name

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FyrPBUQyX1wldiz9xblON%2Fimage.png?alt=media&amp;token=42e7cf03-6961-47d5-9142-8d7af4cced57" alt=""><figcaption></figcaption></figure>

This is the component or solution you wish to share/change owner/stop sharing. It is not the display name but the unique name, this can be found here:

**Solution** -  e.g. CustomForm

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FC2SFrcBgrfyLMOyU7KjO%2Fimage.png?alt=media&amp;token=6ec327ee-b999-48d4-bbcd-51458a5fa1da" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FIEaFp60JNugZucY27WAi%2Fimage.png?alt=media&amp;token=b45dc663-c1e6-4b18-8c1c-dce852059728" alt="" width="563"><figcaption></figcaption></figure>

**Connection Reference** - e.g. wd\_OutlookcustomForm

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FNZzlmu0giF97OGyvI7cy%2Fimage.png?alt=media&amp;token=1512775f-5a95-4aa9-9c22-31b1b13a5343" alt="" width="380"><figcaption></figcaption></figure>

**Environment Variable** - e.g. wd\_customFormsite

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FsY6mYh9RWRUROnNmICTq%2Fimage.png?alt=media&amp;token=d8ca8e69-b645-4f69-9c2d-810ee3f25481" alt="" width="363"><figcaption></figcaption></figure>

**Custom Connector** - e.g. wd\_5Fautoreview

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FDwzLsXTU7fBJfl3rjmJ6%2Fimage.png?alt=media&amp;token=acc49319-1bff-4174-a9c8-2706d1ece894" alt="" width="563"><figcaption></figcaption></figure>

**Flow** - e.g. Send Form

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FY70aOWcxVF2PJOS8w82c%2Fimage.png?alt=media&amp;token=83824182-537d-4aff-b8cd-2c52c67f28a8" alt="" width="563"><figcaption></figcaption></figure>

### Outputs

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2F1nAzDtSMeFPMcXxFxAHR%2Fimage.png?alt=media&amp;token=b3e1c48c-7c5c-419f-9738-9265d57f1487" alt="" width="358"><figcaption></figcaption></figure>

After pressing Submit Power DevBox Share will update the required components, there are multiple steps to each:

* Find Share To
* Find Solution\*
* Find Component
* Share/Change Owner/Stop Sharing

The outputs from these steps will show in the output box. This will be a mix of 200 and 204

#### Example response

```
// Some code200
200
200
Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

Finding User

200
Updating component 1 of 8

Sharing Component

200
Updating component 2 of 8

Sharing Component

200
Updating component 3 of 8

Sharing Component

200
Updating component 4 of 8

Sharing Component

200
Updating component 5 of 8

Sharing Component

204
""
204
204
""
204
204
200
""
""
""

Updating component 6 of 8

Sharing Component

200
Updating component 7 of 8

Sharing Component

200
Updating component 8 of 8

Sharing Component

204
204
""

""

204
8 components in total, 8 updated, 0 not compatible

""
```

The api calls are in parallel so the order may not be correct as its due on when the response replied.

####

#### Errors

Errors will be shown in the response.

<figure><img src="https://587669603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4lWqApvE0FgYB0xwkqLD%2Fuploads%2FtZdSasxlehigw1O9xf4Q%2Fimage.png?alt=media&amp;token=6dd60acb-1ab4-413f-9c7a-661495ba89e3" alt="" width="341"><figcaption></figcaption></figure>
