> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Nextcloud with OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Nextcloud account in the StackOne Hub using OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Nextcloud actions.

> [!WARNING]
>
> Nextcloud OAuth 2.0 clients belong to one Nextcloud server, so the client must be registered on the server you enter. StackOne must reach the server over HTTPS with a certificate from a public certificate authority.

## Register an OAuth 2.0 client

An administrator of your Nextcloud server registers StackOne as an OAuth 2.0 client.

**1. Open the OAuth 2.0 settings**

Sign in to Nextcloud as an administrator, select your avatar, then **Administration settings**.

<ul>
  <li>Under **Administration**, select **Security**.</li>
  <li>Scroll to **OAuth 2.0 clients**.</li>
</ul>

**2. Add the client**

Enter a **Name** and a **Redirection URI**, then select **Add**.

<ul>
  <li>**Name**: `StackOne`</li>
  <li>**Redirection URI**: the **Callback URL** StackOne shows you.</li>
</ul>

**3. Copy the client credentials**

In the new row of the client list, copy the **Client Identifier** across to **Client ID** and the **Secret** across to **Client Secret**.

<ul>
  <li>Newer Nextcloud versions show the secret only once.</li>
</ul>

## Find your Nextcloud URL

The **Nextcloud URL** is the web address of the Nextcloud server where the OAuth 2.0 client was registered.

<ul>
  <li>Copy the address from the browser address bar when you are signed in to Nextcloud, up to but not including `/apps/`, `/index.php/` or `/settings/`. Keep a folder such as `/nextcloud` and a port such as `:8443` if the address has one.</li>
  <li>Format: `https://{your-nextcloud-host}`</li>
  <li>Example: `https://cloud.example.com`</li>
  <li>Then sign in to Nextcloud and select **Grant access**.</li>
  <li>Actions act as the account that grants access. Administrator actions need an account in the admin group.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.