Getting scope error in audit log api

{

“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”,

“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”

},

“category”: “MISSING_SCOPES”

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

Hi, @NDubey6 :waving_hand: The Account activity page has three endpoints. One is limited to Enterprise level accounts only — Get a centralized audit log of user actions.

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.

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

Hi @Jaycee_Lewis
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

Hey, @NDubey6 :waving_hand: 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

Hi @Jaycee_Lewis
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
subscription level -

Thanks