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

# Liferay OAuth 2.0 connector profile – StackOne setup guide

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

> [!WARNING]
>
> You must have administrator access to your Liferay instance to register OAuth2 applications in the OAuth2 Administration panel.

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 OAuth2 application in Liferay

Register an OAuth2 application in Liferay to obtain the Client ID and Client Secret needed for the connection.

**1. Sign in to Liferay**

Sign in to your [Liferay](https://www.liferay.com/) instance as an administrator.

<ul>
  <li>Open the **Applications Menu** from the top navigation bar.</li>
  <li>Navigate to **Control Panel** > **Security** > **OAuth2 Administration**.</li>
  <li>Click the **New** button in the top-right corner to add a new application.</li>
</ul>

**2. Fill in application details**

Complete the application form.

<ul>
  <li>Application Name: `StackOne`</li>
  <li>Callback URI: the **Callback URL** from your Connector Profile</li>
  <li>Select **Client Secret Basic or Post** as the Client Authentication Method.</li>
  <li>Select **Web Application** as the Client Profile.</li>
  <li>Under **Allowed Authorization Types**, enable **Authorization Code** and **Refresh Token**.</li>
</ul>

**3. Save and copy the client credentials**

Save the application and copy the generated credentials.

<ul>
  <li>The **Client ID** is shown on the application overview page.</li>
  <li>The **Client Secret** is displayed only once after the application is saved — copy it immediately and store securely for use later.</li>
</ul>

**4. Configure scopes**

Enables actions: Add Users To User Group, Assign Account Role To User, Assign Role To User, Assign User To Account, Create Account, Create Blog Posting, Create Blog Posting Comment, Create Comment Reply, Create Document, Create Document Comment, Create Document Folder, Create Document In Folder, Create Organization, Create Role, Create Structured Content, Create Structured Content Comment, Create Structured Content Folder, Create User Account, Create User Group, Delete Account, Delete Blog Posting, Delete Comment, Delete Document, Delete Document Folder, Delete Organization, Delete Role, Delete Structured Content, Delete Structured Content Folder, Delete User Account, Delete User Group, Get Account, Get Account By External Reference Code, Get Blog Posting, Get Comment, Get Content Structure, Get Document, Get Document Folder, Get My User Account, Get Organization, Get Role, Get Role By External Reference Code, Get Site, Get Site By Friendly URL Path, Get Structured Content, Get Structured Content Folder, Get Unified Credentials, Get Unified Group, Get Unified Organization, Get Unified Role, Get Unified User, Get User Account, Get User Account By Email Address, Get User Group, IAM Auth Test, List Account Roles, List Account User Accounts, List Accounts, List Blog Posting Comments, List Blog Postings, List Child Organizations, List Comment Replies, List Content Structures, List Document Comments, List Document Folder Documents, List Document Folder Subfolders, List Document Folders, List Documents, List My Sites, List Organization User Accounts, List Organizations, List Roles, List Site Taxonomy Vocabularies, List Site User Accounts, List Structured Content Comments, List Structured Content Folder Contents, List Structured Content Folder Subfolders, List Structured Content Folders, List Structured Contents, List Taxonomy Categories, List Unified Groups, List Unified Organizations, List Unified Resource Types, List Unified Resource Users, List Unified Roles, List Unified Users, List User Accounts, List User Accounts By Status, List User Group Members, List User Groups, List User Groups For User, Remove User From Account, Remove Users From User Group, Replace Comment, Unassign Role From User, Update Account, Update Blog Posting, Update Document, Update Document Folder, Update Organization, Update Role, Update Structured Content, Update Structured Content Folder, Update User Account, Update User Group

After saving the application, open the **Scopes** tab and enable the scopes your integration needs access to.\
\
**`Liferay.Headless.Admin.User.everything` is required for the connection test to succeed and must be enabled in addition to any other scopes your integration uses.**

<ul>
  <li>
    Liferay.Headless.Admin.User.everything
  </li>

  <li>
    Liferay.Headless.Admin.User.everything.read
  </li>

  <li>
    Liferay.Headless.Delivery.everything
  </li>

  <li>
    Liferay.Headless.Delivery.everything.read
  </li>

  <li>
    Liferay.Headless.Admin.Taxonomy.everything.read
  </li>

  <li>
    Liferay.Object.Admin.REST.everything
  </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/liferay/guides/link-account/oauth-2-0.md).


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