Tuesday, 30 April 2019

Google Analytics API: “User does not have sufficient permissions for this account.”



After googling i do not perceive that i cant get ga:users with Oauth2 access_token / refresh_token...why i have to add a region to service@email in my google analytics settings?
For example our service implement options for investigation e-commerce, additionally we tend to should show single guests.

so we tend to cant get ga: users if the user simply permit access by oauth2 to their account with scope 'email,profile,analytics.readonly' ?

Google Analytics API: “User doesn't have enough permissions for this account.” in Php 
Solution

Solution : 

Make sure you give the service account email (something like piyush@developer.gserviceaccount.com) permissions to read/write from your GA view. Admin > View > User Management > "Add permissions for:"



No comments:

Post a Comment