How-To

Couldn't complete the connection: Insufficient scopes (HubSpot)

This error means the HubSpot sign-in asked for fewer OAuth scopes than the connector needs, or different ones than your HubSpot app allows. Add the missing scopes to the HubSpot app and the connector's Security tab so they match exactly, then delete and recreate the connection.

Sohail HussainSohail Hussain9 min read

Short answer

  • HubSpot is rejecting the sign-in because the scopes your connector asks for do not match the scopes configured on the HubSpot app. Every scope marked required in the app must be in the connector's Scope field.
  • Fix the Scope field on the custom connector's Security tab, make the HubSpot app's required scopes match it, then delete the old connection and create a new one.
  • If you use Microsoft's built-in HubSpot connector, you cannot edit scopes. Report the error to Microsoft with the details below.

You are connecting HubSpot from Power Apps, Power Automate or Logic Apps, you get through the HubSpot sign-in, and the flow stops with this:

Couldn't complete the connection Insufficient scopes were provided. Please contact the app developer.

The message comes from HubSpot, not from Power Platform. The person signing in can't fix it, which is why it says "contact the app developer." If you are the one who built the connector or the HubSpot app, that developer is you.

Why it happens

HubSpot's help center documents a close variant of this error: "Authorization failed because the provided scopes are insufficient." It occurs when the app's configuration includes a required scope that is missing from the scope query parameter of the app's install URL. Putting the required scope in the optional_scope parameter also triggers the error. The wording of your message differs slightly, but the mechanism looks the same: the authorization request and the app configuration disagree.

In Power Platform terms, the "install URL" is the authorization request that the connector builds. Its scope value comes from the Scope field on the custom connector's Security tab. The causes below are listed from most to least common.

  1. The connector's Scope field is empty or shorter than the app's required scopes. An empty field sends no scopes, so HubSpot sees required scopes missing.
  2. The HubSpot app lists scopes as required that the connector never asks for. Often someone added scopes to the app later and never updated the connector.
  3. Scopes are marked optional in the app. HubSpot's page says an optional scope incorrectly placed in the scope parameter causes a related mismatch error. I have not seen a Power Platform field for HubSpot's optional_scope parameter, so I would make the scopes required in the app and list them in the connector.
  4. You are using the built-in HubSpot connector. Its app and scope list belong to its maintainers. The issue was reported in the PowerPlatformConnectors repository on GitHub; I could not confirm a fix from there.
  5. A stale connection. I can't confirm from the documentation that an existing connection picks up changed scopes. Deleting and recreating it is cheap and removes the doubt.

A different HubSpot error looks similar but has a different cause. "You don't have permission to connect this integration" means the HubSpot user lacks the roles or permissions to authorize the requested scopes.

Step-by-step fixes

Fix 1: set the scopes on your custom connector

  1. In Power Apps or Power Automate, open Custom connectors and edit your HubSpot connector.
  2. Open the Security tab. Check that Authentication type is OAuth 2.0 and that Identity Provider is Generic Oauth 2.
  3. Confirm the Client id, Client secret, Authorization Url and Token Url belong to your HubSpot app. The client ID and secret are those of the application you registered with the service.
  4. In Scope, enter every scope the app requires, separated by spaces. Microsoft's own examples for other providers use space-separated values, for example Files.Read.All User.Read for Microsoft Graph. For HubSpot it looks like this:
oauth crm.objects.contacts.read crm.objects.contacts.write crm.objects.deals.read
  1. Select Update connector.

The scope names above are examples. Use the exact names from your own HubSpot app's Auth page, and add only the ones your actions call.

Fix 2: make the HubSpot app match

  1. Sign in to your HubSpot developer account and open the app.
  2. Go to the Auth tab. Other vendors' setup guides for HubSpot use this tab for scopes, client ID and secret, and redirect URL.
  3. Compare the required scopes with the connector's Scope field. HubSpot's own advice is that every install URL must include every required scope selected in the app configuration.
  4. Remove required scopes the connector does not need, or add them to the connector. The two lists should be identical.
  5. Check the Redirect URL. Custom connectors that use OAuth 2.0 use a per-connector redirect URI, so copy the one shown on your connector's Security tab after saving. Older connectors may need the Update to unique redirect URL box checked, then saved. Once that is done, remove the old global redirect URI from your OAuth apps.
  6. Save the app.

Do not mix required and optional

A scope that the HubSpot app marks as optional or conditionally required must not be sent as a plain required scope. HubSpot treats that as a mismatch. If you can't send optional scopes from your connector, make the scope required in the app instead.

Fix 3: recreate the connection

  1. In Power Automate or Power Apps, open Connections and delete the HubSpot connection.
  2. Create a new connection to your custom connector.
  3. On HubSpot's consent screen, read the permissions listed. They should match your scope list.
  4. If HubSpot asks which account to use, pick the correct portal.

Fix 4: have the right person authorize

If sign-in works for one person and not for others, check HubSpot roles. One vendor's setup guide says you should be a super admin, or have App Marketplace Access permission plus the user permissions to accept the scopes the app requests. Ask a HubSpot super admin to create the connection, then share it as your tenant allows.

Also check the portal's subscription. HubSpot says an account without the tools behind a requested scope cannot connect the integration; for example, a Marketing Hub Starter account can't connect one that needs workflows. That error reads differently, but it is worth ruling out if you request unusual scopes.

Fix 5: built-in HubSpot connector

You can't edit scopes on a certified connector. Your options are:

  • Build a custom connector on your own HubSpot app (Fixes 1 to 3). You then maintain it.
  • Open a Microsoft support case with the details in the next sections.

Which cause do you have

SymptomLikely causeFix
Scope field on the Security tab is emptyConnector sends no scopesFix 1
App has required scopes the connector doesn't listLists out of syncFix 2
Scopes are optional in the appOptional vs required mismatchFix 2
Error persists after editing settingsOld connectionFix 3
Works for an admin, fails for othersHubSpot user permissionsFix 4
Built-in connector, nothing to editMaintainer's appFix 5

Keep one scope list

Store your scope list in one note and update the HubSpot app and the connector's Scope field in the same sitting. Most repeat failures come from changing only one side.

Checklist before you try again

  • The connector's Scope field is not empty.
  • Every required scope in the HubSpot app appears in that field, spelled identically.
  • No scope is marked optional in the app while being sent as required.
  • The redirect URL on the connector's Security tab is registered in the HubSpot app.
  • The client ID and secret in the connector come from this HubSpot app.
  • The old connection is deleted and a new one created.
  • The person signing in has permission to install apps in the HubSpot portal.

If nothing works

For a custom connector, contact HubSpot developer support, since the rejection comes from HubSpot's authorization page. For the built-in connector, contact Microsoft support or comment on the existing GitHub issue. HubSpot's help page on this class of error is a good reference to attach. Include:

  • The exact error text and the time of the attempt with your timezone.
  • Whether the connector is built-in or custom.
  • The scope list from the HubSpot app's Auth tab and from the connector's Scope field.
  • The redirect URL, the HubSpot portal ID and the steps you already tried.

Never send the client secret.

Subject: HubSpot OAuth error "Insufficient scopes were provided"

Hello,

Connecting HubSpot from Power Automate fails at the end of OAuth sign-in with:
"Couldn't complete the connection Insufficient scopes were provided. Please contact the app developer."

Time of last attempt: {date, time, timezone}
Connector type: {custom or built-in}
HubSpot portal ID: {portal-id}
App ID: {app-id}
Scopes required in the app: {list}
Scopes in the connector Scope field: {list}
Redirect URL registered in the app: {url}
Already tried: matched scope lists, deleted and recreated the connection, signed in as a super admin.

Please tell us which scope or parameter the authorization request is missing.

Common questions

Why does the message tell me to contact the app developer?

HubSpot shows it to end users, who can't change an app's scopes. If you built the connector or the HubSpot app, you are the developer and the fix is in your settings.

Do I need to change anything if I add a scope later?

Yes. Update the connector's Scope field, make the same change in the HubSpot app, and recreate the connection. Then run one action per scope to test.

Can I just request every scope to be safe?

I'd skip that. Every extra scope widens what the app can read and write in your CRM, and users have to approve a longer consent screen. Request only what your actions call.

Is this an outage?

No. It is a configuration mismatch, and it will fail the same way until the scope lists agree.

For current scope names and app setup, see HubSpot's help page on resolving a request for integration permissions error and Microsoft's custom connectors overview.

strategyhubspot-power-platformerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free