> ## 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.

# UiPath OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for UiPath in StackOne to allow users to link their accounts.

> [!WARNING]
>
> An Organization Administrator registers external applications in UiPath.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Register the external application

An external application with user scopes lets each person who links an account sign in to UiPath. Calls then run with that person's UiPath roles.

**1. Open External applications**

Sign in to your [UiPath Automation Cloud account](https://cloud.uipath.com) as an Organization Administrator.

<ul>
  <li>On Automation Cloud Public Sector or Dedicated, sign in at `govcloud.uipath.us` or `{name}.dedicated.uipath.com` instead.</li>
  <li>Open the product launcher at the top left and select **Admin**.</li>
  <li>Select the **External applications** tile.</li>
</ul>

![The Admin home page with the External applications tile highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-external-applications.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=cc711e17e2ac01d3468df3c5626ea60f)

**2. Start a new application**

On the **OAuth apps** tab, click **Add application**.

![The External applications page with the Add application button highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-add-application.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=b090734794aa99891c72b959890d278f)

**3. Name the application**

Fill in the top of the form.

<ul>
  <li>**Application name**: `StackOne Integration`</li>
  <li>**Application type**: **Confidential application**</li>
  <li>Leave **Access token lifetime (seconds)** empty to keep the default of 3600 seconds.</li>
</ul>

![The Add application form with Application name and Confidential application highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-application-details.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=44e35faac4fa2b08ee0df64722785347)

**4. Add the Platform Management scopes**

Enables actions: Create Group, Create Robot Account, Create User, Get Group, Get Robot Account, Get Unified Group, Get Unified User, Get User, List Groups, List Robot Accounts, List Unified Groups, List Unified Users, List Users, Search Directory

Under **Resources**, click **Add scopes**.

<ul>
  <li>In **Resource**, select **Platform Management**.</li>
  <li>Open the **User scope(s)** tab.</li>
  <li>Tick each scope listed.</li>
  <li>Click **Save**.</li>
</ul>

![The Add resource panel with the Platform Management user scopes ticked](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-platform-management-scopes.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=e6424ee49ada48b46e5e38de56890962)

<ul>
  <li>
    PM.Group.Read
  </li>

  <li>
    PM.Group.Write
  </li>

  <li>
    PM.User.Read
  </li>

  <li>
    PM.User.Write
  </li>

  <li>
    PM.RobotAccount.Read
  </li>

  <li>
    PM.RobotAccount.Write
  </li>

  <li>
    PM.Directory
  </li>
</ul>

**5. Add the Orchestrator scopes**

Enables actions: List Robot Logs

Under **Resources**, click **Add scopes** again.

<ul>
  <li>In **Resource**, select **Orchestrator**.</li>
  <li>Open the **User scope(s)** tab.</li>
  <li>Tick `OR.Folders`, `OR.Execution`, `OR.Jobs`, `OR.Queues`, `OR.Assets`, `OR.Robots`, `OR.Machines`, `OR.Tasks`, `OR.Buckets`, `OR.Webhooks` and `OR.Monitoring.Read`.</li>
  <li>Type each name in **Search** and tick the entry with exactly that name.</li>
  <li>Click **Save**.</li>
</ul>

![The Orchestrator user scopes filtered by OR.Jobs, with OR.Jobs ticked](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-orchestrator-scopes.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=554d0ec62f8434b8669f68e20e30e060)

<ul>
  <li>
    OR.Folders
  </li>

  <li>
    OR.Execution
  </li>

  <li>
    OR.Jobs
  </li>

  <li>
    OR.Queues
  </li>

  <li>
    OR.Assets
  </li>

  <li>
    OR.Robots
  </li>

  <li>
    OR.Machines
  </li>

  <li>
    OR.Monitoring.Read
  </li>

  <li>
    OR.Tasks
  </li>

  <li>
    OR.Buckets
  </li>

  <li>
    OR.Webhooks
  </li>
</ul>

**6. Set the redirect URL**

In the **Redirect URL** field, enter the **Callback URL** from your Connector Profile and press Enter.

<ul>
  <li>Click **Add**.</li>
</ul>

![The Redirect URL field with a callback URL entered and the Add button highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-redirect-url.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=dfc3f00c7de5ff4594b7cb5d1b3b0aec)

**7. Copy the credentials**

The **Application successfully added** window shows the **App ID** and **App secret**.

<ul>
  <li>Copy the **App ID** to **Application ID** in your Connector Profile.</li>
  <li>Copy the **App secret** to **Application Secret** in your Connector Profile.</li>
  <li>The **App secret** is only displayed once and cannot be retrieved later.</li>
</ul>

![The Application successfully added window with the Copy buttons for App ID and App secret highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-app-credentials.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=af66a0dafe409913604630de36acf42d)

## Find your Cloud Type

The **Cloud Type** is the UiPath cloud your organization signs in to.

<ul>
  <li>Look at the address in your browser when you are signed in to UiPath.</li>
  <li>`cloud.uipath.com` is **Automation Cloud**</li>
  <li>`govcloud.uipath.us` is **Automation Cloud Public Sector**</li>
  <li>`{name}.dedicated.uipath.com` is **Automation Cloud Dedicated**</li>
  <li>Leaving **Cloud Type** empty uses **Automation Cloud**.</li>
  <li>Select the matching **Cloud Type** in your Connector Profile.</li>
</ul>

## Find your Dedicated Cloud Name

The **Dedicated Cloud Name** is the first part of your Automation Cloud Dedicated address. Skip it for the other clouds.

<ul>
  <li>Format: `{name}` from `{name}.dedicated.uipath.com`</li>
  <li>Example: `acme`</li>
  <li>Use letters, digits and hyphens only.</li>
  <li>Copy the **Dedicated Cloud Name** into your Connector Profile.</li>
</ul>

## Find your Organization Name

The **Organization Name** is your organization's URL name.

**1. Copy the URL name**

In **Admin**, open **Settings**. On the **General** tab, the **URL** field shows the name after `https://cloud.uipath.com/`.

<ul>
  <li>It is not the **Organization name** field above it, which is a display name.</li>
  <li>Format: `https://cloud.uipath.com/{organization}/{tenant}`</li>
  <li>Example: `https://cloud.uipath.com/acmecorp/DefaultTenant` gives `acmecorp`</li>
  <li>Copy the **Organization Name** into your Connector Profile.</li>
</ul>

![The Admin Settings General tab with the organization URL field highlighted](https://mintcdn.com/stackone-60/GEh2bYvJkg5Tlo0c/connectors/uipath/images/oauth2-authorization-code-setup-organization-url.png?fit=max\&auto=format\&n=GEh2bYvJkg5Tlo0c\&q=85\&s=372c8492798878f275a8d2b808a96129)

## Find your Organization ID

The **Organization ID** is the ID UiPath calls the `partitionGlobalId`. It is a GUID.

**1. Check the sign-in address**

Sign in to UiPath and look at the address you land on. It holds `organizationId=` followed by the ID.

<ul>
  <li>Format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`</li>
  <li>The address can change too fast to read.</li>
  <li>Copy the **Organization ID** into your Connector Profile.</li>
</ul>

**2. Find it with the browser developer tools**

Open the developer tools before you sign in, switch to the **Network** tab and turn on recording.

<ul>
  <li>Sign in to UiPath Automation Cloud and select your tenant.</li>
  <li>After the page loads, find a request such as the **Settings** API request.</li>
  <li>Copy the ID that follows `partitionGlobalId` in its **Request URL**.</li>
  <li>Copy the **Organization ID** into your Connector Profile.</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/uipath/guides/link-account/oauth-2-0.md).


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