# Getting Unauthorized exception upon getowner api endpoint request

**URL:** <https://community.hubspot.com/t/getting-unauthorized-exception-upon-getowner-api-endpoint-request/81081>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [May 12, 2023, 7:39am UTC](https://community.hubspot.com/t/getting-unauthorized-exception-upon-getowner-api-endpoint-request/81081 "2023-05-12T07:39:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTachiona](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TTachiona](https://community.hubspot.com/u/TTachiona)\
**Post date:** [May 12, 2023, 7:39am UTC](https://community.hubspot.com/t/getting-unauthorized-exception-upon-getowner-api-endpoint-request/81081/1 "2023-05-12T07:39:57Z")

</div>

Hi, I’m getting an unauthorized exception on owners getowner api’s endpoint stating that “This app hasn’t been granted all required scopes to make this call.”. It works on my local dev machine but it doesn’t once on deployed QA. All other endpoints works fine. Please advise me if I might be missing something.

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [May 12, 2023, 9:04am UTC](https://community.hubspot.com/t/getting-unauthorized-exception-upon-getowner-api-endpoint-request/81081/2 "2023-05-12T09:04:15Z")

</div>

@TTachiona

Hi.

Do the two apps have the same scope?

In particular, app have the “crm.objects.owners” scope?

Please check it in your app settings.

Thanks.

---

<div class="post-metadata">

**Author:** ![TTachiona](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TTachiona](https://community.hubspot.com/u/TTachiona)\
**Post date:** [May 15, 2023, 6:36am UTC](https://community.hubspot.com/t/getting-unauthorized-exception-upon-getowner-api-endpoint-request/81081/3 "2023-05-15T06:36:06Z")

</div>

Hi, It’s one app. We use PAT local dev machine and we have OAuth setup on QA and dev.  
I have the crm.objects.owners scope setup. It also happens with updating the deal’s pipeline stage. Whereas for other properties it goes through.

 ![TTachiona_0-1684132338793.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/8/c848a09f869034d185bb5c91dcb87015c98a2466.png)
