Admin API: What's the point of service accounts?
python - Accessing Google Admin API via Service Account - Stack Overflow
Magento Admin area -Google API: Google AdWords settings not working
Never used this feature, but didn’t they remove it in 2.4 because it didn’t work well?
More on reddit.comGoogle Analytics Admin API: Error after refactoring (uninitialized constant Google::Analytics::Admin::V1alpha)
It's usually safe to assume that Bundler.require will bring the modules of the gem into the realm of autoloading. Unfortunately, this gem seems to be an exception. It appears you need to explicitly require the v1alpha library by invoking the following at some point. (If Rails, perhaps in config/initializers)
require "google/analytics/admin/v1alpha"
The project's README does not mention this being necessary (huge bummer) but I was able to find this little tidbit in the source.
More on reddit.comVideos
So currently I'm using GAM to automate account creation. I need more flexibility so I was moving to the google admin php library. This whole deal with service accounts is super confusing.
I thought service accounts were so that an *application* could access the APIs without being tied to any particular user account as user accounts may come and go while the application is in place. But I see no way to give the service account the permission to create new users directly. Everything I'm reading seems to indicate that in order for a service account to have the authority to, in my case create new accounts, it has to be passed an actual admin user in order to have the authority to perform the action. And on top of that, for the service account to be able to assume the identity of that admin account, you have to turn on domain-wide authority so it can access ANY user's account. This seems like opening the floodgates on a dam to fill up your glass.
So what's the point in a service account if I still need to maintain "ghost" admin users just so the service account has a permanent user account to latch on to? Just don't understand the logic here.