I've read a few comments in some reports on the use of the sub
parameter which (this is how i understand it), when passed with the credentials object to google analytics for 2LO with service accounts, can be used to act as a substitute for directly authorizing an account manually through the admin console which I've pictured below.
Analytics Google API Error 403: "User does not have any Google Analytics Account"
Am I wrong in my understanding in thinking that if i passed 'sub': 'superuseremail@account.com'
it would take the place of manually setting account permissions in GA?
More importantly, I was granted access to a Google Analytics account via account permissions (such that I don't have super-user authority, or access to the super user email), and I passed this sub
parameter using that email. I received the 403 error attempting this route.
Put briefly:
The only way to get access with the service account I'm gleaning is either to have access to the super-user email and managing account permissions by manually adding the service account email or to pass the sub
parameter with the credentials
object having a sub
email that is the correct super-user email?