> ## 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 Oracle Clinical One with OAuth 2.0 (Password Grant) (Multiple Companies) – StackOne Hub

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

> [!WARNING]
>
> The client ID and secret must be generated by an Oracle Life Sciences IAMS customer-delegated administrator (CDA) with the system-admin role. You also need your own Oracle Life Sciences IAMS user account with the clinicalone-CNE role and study roles in Oracle Clinical One.

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

## Find your tenant details

Your tenant details identify your Oracle Clinical One environment and the Oracle Life Sciences IAMS service that issues its access tokens. They are the same for everyone at your company.

**1. Find your tenant name**

Your **Tenant Name** is the full tenant name in the host URL your organization uses for Oracle Clinical One.

<ul>
  <li>Format: `https://{tenant}.clinicalone.oraclecloud.com/eclinical-portal/`</li>
  <li>Example: if your URL is `https://acmepharma.clinicalone.oraclecloud.com/eclinical-portal/`, your tenant name is `acmepharma`</li>
  <li>If you don't have this URL, ask your Oracle project manager.</li>
  <li>Copy the **Tenant Name** across.</li>
</ul>

**2. Get your token URL**

Ask your Oracle project manager for the Oracle Life Sciences IAMS URL that issues access tokens. It is different from the URL you use to make Oracle Clinical One API calls.

<ul>
  <li>Format: `https://{token host}/ms_oauth/oauth2/endpoints/{tenant ID}/tokens`</li>
  <li>Example: if your token URL is `https://login.example.oraclecloud.com/ms_oauth/oauth2/endpoints/hsgb/tokens`, your token host is `login.example.oraclecloud.com` and your tenant ID is `hsgb`</li>
  <li>Copy the **IAMS Token Host** across, with no protocol and no `/ms_oauth` path.</li>
  <li>Copy the **Tenant ID** across. It is the abbreviated tenant name, while Oracle Clinical One API calls use the full tenant name.</li>
</ul>

## Get your company's client ID and secret

Your company needs one Password Grant client in the Oracle Life Sciences IAMS OAuth Admin Console. Everyone at your company uses the same client ID, secret and permissions, so if a colleague has already created the client, ask them for these values and skip to the next section.

**1. Request the system-admin role**

The role is not assigned by default, and you only need to request it once. Sign in to Oracle Life Sciences IAMS as a customer-delegated administrator, using the URL specific to your organization.

<ul>
  <li>Find the URL in your browser bookmarks or in the welcome email Oracle sent when your account was created. See [Oracle Life Sciences IAMS bookmarks](https://docs.oracle.com/en/industries/life-sciences/clinical-one/user-provisioning/bookmarks.html).</li>
  <li>Under the **Administration** section, click **Users**.</li>
  <li>Under the **Search Users** section, search for your own user.</li>
  <li>In the **Search Results** table, click your user name.</li>
  <li>On the **User Details** page, select the **Roles** tab.</li>
  <li>From the **Actions** drop-down, select **Request**.</li>
  <li>Search the roles for `system-admin`.</li>
  <li>Click **Add to Cart**.</li>
  <li>In the upper-right, click **Checkout**.</li>
</ul>

**2. Request a new client**

Sign in to your Oracle Life Sciences IAMS OAuth Admin Console account with your customer-delegated administrator credentials.

<ul>
  <li>The OAuth Admin Console URL is different from the Oracle Life Sciences IAMS URL. Get it from your Oracle project manager.</li>
  <li>On the home page, click **Request New Client**.</li>
  <li>**Client Name**: `StackOne Integration`</li>
  <li>**Client Type**: **Password Grant**</li>
  <li>**Business Service**: `clinicalone-CNE`, the business service of the users who will connect</li>
</ul>

**3. Add permissions**

Enables actions: Add A Kit In A Study, Add A Subject, Add A Visit, Add Comment Or Reply To An Object, Add Form In A Study Version, Add Study, Bulk Assign Forms To Visits, Bulk User Effective Dates Update, Bulk User Sites Update, Create A New Treatment Arm For A Study Version, Create A Site, Create A Subject Transfer, Create All Visits, Forms And Questionnaires, Create And Assign Bulk Users, Create Codelist, Create Data Elements For The Flat Part Of A Multi Section Form, Create Data Elements For The Repeating Part Of A Multi Section Form, Create Manual Shipment In Resupply Strategy, Create Multiple Data Elements For A Subject, Create Open Query, Create Organization, Create Randomization List, Create Visit Status Record, Delete A Site By ID, Delete A Specific Form, Delete A Visit, Delete Data Elements In A Form Within A Visit, Export Kit Details For The Inventory, Export Randomization List, Get A Global User's Details By User ID, Get A List Of All Studies, Get A List Of Study Forms, Get A List Of Study Visits, Get A Specific Form, Get A User's Modes And Roles, Get All Comments For An Object, Get All Items With Source Data Verification Information, Get All Visits, Forms And Questionnaires, Get Associated And Dynamic Forms For A Subject Visit, Get Codelist By Name, Get Country Name, Get Data Elements Based On Subject, Visit, And Form, Get Data Elements By Subject And Event ID, Get Global Users, Get Inventory Statuses, Get Kit List Details, Get Kit Types, Get List Of Randomization Designs In A Study Version, Get List Of Treatment Arms For All Study Versions, Get List Of Visits Status For A Subject, Get Non-Serialized Inventory Order Items, Get Number Of Open Queries In A Study For Selected Subjects, Get Organizations, Get Query By ID, Get Query Data Based On Multiple Parameters, Get Randomization List, Get Sign Information, Get Site Or Depot Details By Study ID Using Filters, Get Study Design Visits, Get Study Site Details With Study Version Property By Site ID, Get Study Visit, Get Subject Details, Get Subject History, Get Subjects And Their Visit Schedule, Get Subjects For The Specified Study And Mode, Get Subjects With Open Queries In A Study, Get The Audit History For A Data Element, Get The Number Of Queries In A Study, List Available Order Status Values, List Codelists, Search For Kits In A Given Range For A Site, Search Shipments For A Site, Search Shipments For A Study, Update Data Elements For The Repeating Part Of A Multi Section Form, Update Single Data Element, Update Subject, Update Visit Status For A Given ID, Upload Kit List File, Upsert Data Elements For The Flat Part Of A Multi Section Form, Verify Multiple Data Elements For A Subject

Each permission gives access to one Oracle Clinical One API category, and you can refine them later.

<ul>
  <li>Click **Add Permissions**.</li>
  <li>In the **Add permissions** dialog, select each permission listed.</li>
  <li>Click **Add**.</li>
  <li>Enter the same permissions in **Permissions**, separated by spaces.</li>
</ul>

<ul>
  <li>
    ec-designer-svc
  </li>

  <li>
    ec-designer-edc-svc
  </li>

  <li>
    ec-designer-ors-svc
  </li>

  <li>
    ec-designer-study-svc
  </li>

  <li>
    ec-dc-svc
  </li>

  <li>
    ec-dataaction-svc
  </li>

  <li>
    ec-query-svc
  </li>

  <li>
    ec-comment-svc
  </li>

  <li>
    ec-codelist-svc
  </li>

  <li>
    ec-site-svc
  </li>

  <li>
    ec-ors-svc
  </li>

  <li>
    ec-auth-svc
  </li>
</ul>

**4. Save the client ID and secret**

The generated client ID and secret are displayed on the **Request New Client** dialog.

<ul>
  <li>Copy the **Client ID** across.</li>
  <li>Copy the **Client Secret** across.</li>
</ul>

## Find your sign-in details

Use your own Oracle Life Sciences IAMS user, which carries the study roles you hold in Oracle Clinical One.

**1. Find your username and password**

Your Oracle Life Sciences IAMS user name and password are in the welcome email you received when your account was created. See [Get your account information](https://docs.oracle.com/en/industries/life-sciences/identity-access-management-service/manage-account-guide/get-your-account-information.html) if you can't find it.

<ul>
  <li>Copy the **Username** across, without the leading tenant ID.</li>
  <li>Example: if your user login is `hsgb.edc.jdoe`, enter `edc.jdoe`</li>
  <li>Copy the **Password** across.</li>
</ul>

**2. Check your roles**

Your account needs the `clinicalone-CNE` role in Oracle Life Sciences IAMS and the appropriate study role in each study mode in Oracle Clinical One.

<ul>
  <li>If a role is missing, ask your user administrator or your Oracle project manager.</li>
  <li>Before you connect, sign in to Oracle Clinical One and carry out the tasks you want StackOne to perform, to confirm your roles allow them.</li>
</ul>

**3. Update the password after each change**

Oracle Life Sciences IAMS passwords must be changed every 90 days. Copy the new **Password** across after each change.

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