How to Resolve Organization Access Issues When OAuth App Restrictions Are Enabled?

When creating an organizational account in CodeScene or when adding your organization’s repositories to a project, CodeScene relies on the CodeScene Repositories OAuth app to access the necessary data.

This means that while you install the app from your personal GitHub account, you must also grant access to your organization’s data. If this step is skipped - or if your organization enforces OAuth app access restrictions - you may encounter issues creating the organization account in CodeScene or accessing its private repositories.


Step 1: Verify CodeScene Repositories App Access

  1. Go to your GitHub account.

  2. Click on your profile icon (top right corner) → Settings.

  3. Navigate to ApplicationsAuthorized OAuth Apps.

  4. Locate the CodeScene Repositories app and click on it.

  • If the application has access to your organization, you’ll see it listed with a ✅ checkmark.

  • If you see a ❌ red X next to your organization’s name, CodeScene cannot access your organization’s data.


Step 2: Check Your Organization’s OAuth App Policy

The red X typically means that your organization has enabled OAuth app access restrictions. To resolve this:

  1. Click your profile icon (top right corner) → Organizations.

  2. Select your organization (e.g., arnela-test).

  3. Go to SettingsOAuth App Policy.

  4. Find the CodeScene Repositories application.

  5. If the app is marked as ❌ Denied, click the pen icon ✏️ and select Grant Access.


Step 3: Confirm Access

Once access is granted:

  • The red X should change to a ✅ checkmark.

  • You can now create your organizational account in CodeScene and access its private repositories.


Additional Resources

Instructions on how to install or revoke the CodeScene Repositories OAuth app are available here.