> ## 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 Brainier with OAuth 2.0 (Client Credentials) – StackOne Hub

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

> [!WARNING]
>
> Admin privileges in your Brainier account are required to complete this integration. If you don't have admin access, please contact your Brainier administrator.

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

## Create an API Client

To authenticate with the Brainier Elan/LMS REST API using OAuth 2.0, you must first create an API Client.

**1. Log in to Brainier LMS**

Log in to your Brainier LMS site at `https://{subdomain}.brainier.com` with an account that has Administrator privileges.

![Brainier LMS Login](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-login.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=17b1107b41b953663a25a28135844f6d)

**2. Access API Client Management**

Navigate to **⚙️ Administration** (top right corner) > **Settings** > **Options** > **Integrations** > **Elan/LMS REST API**, then click the **Manage API Clients** button.

![Brainier LMS API Client Management](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-api-client-management.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=9fdc1b7db865195555873f376b902a8f)

**3. Create New API Client**

Click the **Add** button in the top right corner of the screen.

![Brainier LMS API Client Add](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-api-client-add.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=872caf90aa20838c7908dd489b338c59)

**4. Configure API Client Settings**

Enables actions: Add User To Group, Create Assigned Group, Create Assigned Object, Create Assigned User, Create Assignment, Create Bookmark, Create Group, Create Object Access, Create User, Create User Object Record, Get All Object Authors, Get Assigned Groups, Get Assigned Objects, Get Assigned Users, Get Assignments, Get Assignments By User, Get Bookmarked Objects, Get Class Schedules Info, Get Form Options, Get Form Questions And Answers, Get Learning Object Comments, Get Learning Object Info, Get Multiple Groups Info, Get Multiple Learning Objects Info, Get Multiple Roles Info, Get Multiple Users Info, Get Object Access, Get Object Authors, Get Objects By Author, Get Single Group Info, Get Single Role Info, Get Single User Info, Get Tags, Get User Form Answers, Get User Object Records, Remove Assigned Group, Remove Assigned Object, Remove Assigned User, Remove Bookmark, Remove Object Access, Remove User From Group, Send Form Answers, Unregister From Class, Update Group Info, Update User Info, Update User Object Record, Upload User Avatar

Fill in the following fields.

<ul>
  <li>**Client Name**: Enter a descriptive name (e.g., StackOne Integration)</li>
  <li>**Token Duration (minutes)**: Set the access token validity period. Maximum: 1440 (24 hours)</li>
  <li>**Scopes**: Select the scopes required for your integration (e.g., Learning Objects, User Object Records, Users, Groups, Assignments).</li>
</ul>

![Brainier LMS API Scopes](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-api-scopes.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=c999d390d95ce43135ca33f7d3f158e0)

<ul>
  <li>
    Assignments
  </li>

  <li>
    Authors
  </li>

  <li>
    Bookmarks
  </li>

  <li>
    Forms
  </li>

  <li>
    Groups
  </li>

  <li>
    LearningObjects
  </li>

  <li>
    Roles
  </li>

  <li>
    Tags
  </li>

  <li>
    UserObjectRecords
  </li>

  <li>
    Users
  </li>
</ul>

**5. Save and Retrieve Credentials**

Click **Save** to create the API Client. After saving, two new fields will appear: **Client ID** and **Client Secret**. Copy both values and store them securely for later use. The Client Secret will not be shown again.

![Brainier LMS API Copy Credentials](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-api-copy-creds.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=9980c8a53551e64c33fed6278904f324)

## Gather Required Information

Collect the following information to link your Brainier account with StackOne.

**1. Find Your Subdomain**

Your Brainier subdomain is the first part of your Brainier URL.

<ul>
  <li>Format: `https://{subdomain}.brainier.com`</li>
  <li>Example: If your URL is `https://mycompany.brainier.com`, your subdomain is `mycompany`</li>
  <li>Note: Do not include `.brainier.com` in the subdomain field</li>
</ul>

![Brainier LMS Subdomain](https://mintcdn.com/stackone-60/i2Gb6mQbr5-3RIAI/connectors/brainier/images/brainier-api-subdomain.png?fit=max\&auto=format\&n=i2Gb6mQbr5-3RIAI\&q=85\&s=86ba23c375fa40693dc784873239cb6f)

**2. Identify Username (Optional)**

Identify the username of the account you would like to associate with this connection. This is typically a SuperAdmin account or a dedicated service account with the appropriate permissions.

<ul>
  <li>Note: If left blank, the connection will use the default SuperAdmin account.</li>
</ul>

**3. API Client IP (Optional)**

If your Brainier API Client was configured with an IP restriction, enter the IP address in the **API Client IP** field when linking the account. This value is used to identify the origin of API traffic.

<ul>
  <li>You can find this in your Brainier API Client settings under **Administration** > **Settings** > **Options** > **Integrations** > **Elan/LMS REST API** > **Manage API Clients**.</li>
  <li>If no IP restriction was set on the API Client, leave this field blank.</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.