> 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/oauth-consent-scopes-and-administrator-approval.md).

# OAuth Consent, Scopes, and Administrator Approval

OAuth connects a provider account through the provider’s sign-in and consent screens. Some organizations require an administrator to approve the requested access.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2Fu4VIT0l84EEJcu7grGrd%2FG048A.mp4?alt=media&token=46e5baf1-68a7-47ba-b1ba-7dc129f8041e>" %}

## Before you begin

A provider account and any required administrator consent.

## OAuth concepts

| Term                  | Definition                                                                                                                                                                           |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| OAuth                 | An authorization flow in which the provider grants an application access after sign-in and consent. Access is limited by the approved scopes and the provider account’s permissions. |
| 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.                             |
| Administrator consent | Provider approval required from an administrator for certain application permissions. A user’s successful sign-in may not satisfy this requirement.                                  |
| Access token          | A credential used to authorize requests for its valid lifetime. Expiration or revocation can prevent an otherwise valid operation.                                                   |
| Connection            | A saved authorization to a particular provider account. An action uses the selected account’s access, subject to StackAI sharing controls.                                           |

## Authorize an OAuth connection

1. Choose the provider’s OAuth connector in Connections.

![Review the scopes requested by the connector before authorizing the provider account.](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/HTeYOrUFdgLW4gwLtJGa/assets/g048a-g048a-01-edit.png)

Review the scopes requested by the connector before authorizing the provider account.

2. Sign in to the intended provider account and review the requested permissions.
3. Complete consent and return to StackAI. Select the saved connection in the operation that needs it.

The connection appears in StackAI and can access the resources allowed by the provider.

## Behavior and limitations

A successful sign-in does not mean administrator consent was granted. If the provider blocks the request, ask its administrator to review the application and scopes. Reconnecting with the wrong account can change which files or records are available. Follow the provider’s integration page for its exact consent steps.

## Related resources

[Custom OAuth scopes and reauthorization](https://docs.stackai.com/guides-and-quickstarts/using-tools-and-actions/custom-oauth-scopes-and-reauthorization.md)

[Connection Ownership, Sharing, and Permissions](https://docs.stackai.com/technical-reference/connections-and-tool-execution/connection-ownership-sharing-and-permissions.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/oauth-consent-scopes-and-administrator-approval.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.
