> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/technical-reference/connections-and-tool-execution/connection-ownership-sharing-and-permissions.md).

# Connection Ownership, Sharing, and Permissions

A connection authorizes StackAI to access a provider account. Share it only with the people and projects that need that account’s resources.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FkyJ4klpZcLHIiou3FXkp%2FG046.mp4?alt=media&token=0c8af3e9-77af-4dd0-bbda-41dc649fe3b3>" %}

## Before you begin

Permission to manage connections and access to the intended provider account.

## Connection access concepts

| Term          | Definition                                                                                                                                               |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Connection    | A saved authorization to a particular provider account. An action uses the selected account’s access, subject to StackAI sharing controls.               |
| User identity | The authenticated person or application acting on a resource. It determines access; a display name or conversation ID does not authenticate a caller.    |
| Authorization | The decision whether a caller can perform an operation on a resource. Check roles, scopes, organization context, and sharing when access is denied.      |
| Role          | A set of permissions assigned to a member or supported account. Inspect the permission matrix rather than inferring access from the role name.           |
| Scope         | A permission category requested by an application or assigned to a key. A scope permits an operation class; resource-level restrictions can still apply. |

## Share a connection

1. Open Connections and select the connection.

![Select the provider whose account the operation needs to access.](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/Xgr4UtJCP5PpVQrKbs4Z/assets/g046-g046-01-provider.png)

Select the provider whose account the operation needs to access.

2. Review its account identity and sharing settings.
3. Select the connection in the required action or knowledge source and run the operation.

The operation uses the intended account with the required access.

## Behavior and limitations

StackAI sharing and provider permissions apply separately. Sharing a connection does not add permissions to its provider credential. A person who can view a project may still lack access to its connection. If access fails, check both settings before replacing credentials.

## Related resources

[Create and manage connections](https://docs.stackai.com/guides-and-quickstarts/using-tools-and-actions/create-and-manage-connections.md)

[OAuth Consent, Scopes, and Administrator Approval](https://docs.stackai.com/technical-reference/connections-and-tool-execution/oauth-consent-scopes-and-administrator-approval.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/technical-reference/connections-and-tool-execution/connection-ownership-sharing-and-permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
