# Getting scope error in audit log api

**URL:** <https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 9, 2024, 12:56pm UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411 "2024-01-09T12:56:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NDubey6](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@NDubey6](https://community.hubspot.com/u/NDubey6)\
**Post date:** [January 9, 2024, 12:56pm UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411/1 "2024-01-09T12:56:34Z")

</div>

{

“status”: “error”,

“message”: “This app hasn’t been granted all required scopes to make this call. Read more about required scopes here: [Scopes - HubSpot docs](https://developers.hubspot.com/scopes.)”,

“correlationId”: “a11d428f-48ee-4377-94b0-4bd7fecfaa44”,

“errors”: [

{

“message”: “All of the following scopes are required.”,

“context”: {

“requiredScopes”: [

“account-info.security.read”

]

}

}

],

“links”: {

“scopes”: “[Working with OAuth - HubSpot docs](https://developers.hubspot.com/scopes)”

},

“category”: “MISSING\_SCOPES”

}  
I already added this scope in my private app but still, I am getting this error.  
i have a paid account

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 9, 2024, 9:10pm UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411/2 "2024-01-09T21:10:48Z")

</div>

Hi, @NDubey6 👋 The Account activity page has three endpoints. One is limited to Enterprise level accounts only — [Get a centralized audit log of user actions](https://developers.hubspot.com/docs/api/settings/account-activity-api#:~:text=Enterprise%20subscriptions%20only).

`GET /account-info/v3/activity/audit-logs`

The other two endpoints do not have this restriction. This restriction also matches the options for accessing the [Audit Log in-app](https://knowledge.hubspot.com/view-and-export-account-activity-history-in-a-centralized-audit-log?_ga=2.10690164.133318460.1704814373-262625543.1704814373&_gl=1*1rp0o47*_ga*MjYyNjI1NTQzLjE3MDQ4MTQzNzM.*_ga_LXTM6CQ0XK*MTcwNDgzMTg1OS4zLjEuMTcwNDgzNDE0Ny42MC4wLjA.).

 ![CleanShot 2024-01-09 at 14.07.48.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/d/4d1720bf5e1830d45cdc0dbd849d60ea5cae0743.png)

Can you specify which endpoint you are using and the subscription level of your portal, please? That will help narrow down potential causes for this warning.

Thanks for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![NDubey6](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@NDubey6](https://community.hubspot.com/u/NDubey6)\
**Post date:** [January 10, 2024, 12:15pm UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411/3 "2024-01-10T12:15:18Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
My end goal is to get user activity for all plan not just for enterprise.  
Is there any different api or i use combination 2-3 api get the result

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 11, 2024, 11:40pm UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411/4 "2024-01-11T23:40:20Z")

</div>

Hey, @NDubey6 👋 The Audit Log endpoint specifically is limited to Enterprise tiers. If you don’t have that level of subscription, you’ll need to see if the other two endpoints can get you the details you are after. — Jaycee

---

<div class="post-metadata">

**Author:** ![NDubey6](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@NDubey6](https://community.hubspot.com/u/NDubey6)\
**Post date:** [January 10, 2024, 5:42am UTC](https://community.hubspot.com/t/getting-scope-error-in-audit-log-api/97411/5 "2024-01-10T05:42:57Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)  
Here is the api endpoint and subscription level.  
I am using audit log api - GET - [https://api.hubapi.com/account-info/v3/activity/audit-logs](https://api.hubapi.com/account-info/v3/activity/audit-logs)  
subscription level -

 ![NDubey6_0-1704865146939.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a7c848212519e85e576d0a69cb9e0d9150c86416.png)

 ![NDubey6_1-1704865609224.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0edb8a10ff470c00b9304394fe74c2c502738734.png)

Thanks
