# Insufficient scopes were provided

**URL:** <https://community.hubspot.com/t/insufficient-scopes-were-provided/63051>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [August 16, 2022, 1:48pm UTC](https://community.hubspot.com/t/insufficient-scopes-were-provided/63051 "2022-08-16T13:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LGarcia9](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@LGarcia9](https://community.hubspot.com/u/LGarcia9)\
**Post date:** [August 16, 2022, 1:48pm UTC](https://community.hubspot.com/t/insufficient-scopes-were-provided/63051/1 "2022-08-16T13:48:32Z")

</div>

I’m getting this error when I try to install my application:

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/a/5a1acf3e5c81c66c65d84d22cbc03c69700796bc.png)

What’s weird because the only scope I’m requesting are: “crm.objects.contacts.read,crm.schemas.contacts.read”

And on apps’s scopes list they are there:

 ![LGarcia9_1-1660657533681.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/e/ae7dd7800710f2da7ac448c6c25da5507bc2b3fe.png)

I don’t know if I’m doing something wrong.

But basically I did:

1. Created app
2. Added the scopes
3. Clone the [GitHub - HubSpot/oauth-quickstart-nodejs: A Node JS app to get up and running with the HubSpot API using OAuth 2.0 · GitHub](https://github.com/HubSpot/oauth-quickstart-nodejs)
4. Add CLIENT\_ID and CLIENT\_SECRET
5. yarn install and yarn start
6. Tried to install the app on an account test.

Someone can assist me?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [August 17, 2022, 11:27pm UTC](https://community.hubspot.com/t/insufficient-scopes-were-provided/63051/2 "2022-08-17T23:27:43Z")

</div>

@LGarcia9 , did you add the scopes in the install URL? If your app has all of these scopes selected, you will also need to add all of them to the install URL

---

<div class="post-metadata">

**Author:** ![LGarcia9](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@LGarcia9](https://community.hubspot.com/u/LGarcia9)\
**Post date:** [September 16, 2022, 3:25pm UTC](https://community.hubspot.com/t/insufficient-scopes-were-provided/63051/3 "2022-09-16T15:25:34Z")

</div>

Hi @dennisedson , yes, they are on url, this is the URL generated by the app:

[https://app.hubspot.com/oauth/authorize?client\_id=c2f6d221-7d34-4a84-8043-7ab37fe0e023&scope=crm.objects.contacts.read%20crm.schemas.contacts.read&redirect\_uri=https%3A%2F%2Flocalhost%2Foauth-callback](https://app.hubspot.com/oauth/authorize?client_id=c2f6d221-7d34-4a84-8043-7ab37fe0e023&scope=crm.objects.contacts.read%20crm.schemas.contacts.read&redirect_uri=https%3A%2F%2Flocalhost%2Foauth-callback)

---

<div class="post-metadata">

**Author:** ![LGarcia9](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@LGarcia9](https://community.hubspot.com/u/LGarcia9)\
**Post date:** [September 16, 2022, 4:02pm UTC](https://community.hubspot.com/t/insufficient-scopes-were-provided/63051/4 "2022-09-16T16:02:58Z")

</div>

I found the issue, I added more scopes on admin than I was adding on url, The scopes that are listed in your app need to match the scopes you list in your authorization call.

That is the reason for the issue, after I removed the unnecessary scopes from App, and add all of them on url, it worked.

Thanks
