I'm running into an issue attempting to use the provisioning api groups scope in a readonly mode.
I've authorized my service account in a google apps domain with the following scope
https://apps-apis.google.com/a/feeds/group/#readonly
Which according to this document is the correct scope.
Requesting an auth token with a scope of either:
`https://apps-apis.google.com/a/feeds/group/#readonly`, or `https://apps-apis.google.com/a/feeds/group/`
results in an invalid_scope
error.
If we look at the actual provisioning docs at https://developers.google.com/google-apps/provisioning/auth the scope is listed as https://apps-apis.google.com/a/feeds/groups/
.
Using the readonly version of this scope (https://apps-apis.google.com/a/feeds/groups/#readonly
) in the google apps admin panel results in the results in the following errors:
- requesting an auth token for
https://apps-apis.google.com/a/feeds/groups/#readonly
, raises aninvalid_scope
error. - requesting an auth token for
https://apps-apis.google.com/a/feeds/groups/
, raises anaccess_denied
. I believe this would be expected behaviour as we did not authorize a read/write version of the scope.
We have tried all different combinations of the scopes, but have had no luck. The only way that everything works as expected is if we both authorize, and request an access token with the https://apps-apis.google.com/a/feeds/groups/
scope. In our use case, we cannot allow read/write privileges on this API.
Other examples of inconsistency in the docs:
- The English version (http://support.google.com/a/bin/answer.py?hl=en&answer=162105) lists the scope as
https://apps-apis.google.com/a/feeds/group/#readonly
- The Spanish version (http://support.google.com/a/bin/answer.py?hl=es&answer=162105) lists the scope as
https://apps-apis.google.com/a/feeds/groups/#readonly
What is the official supported read-only scope for the groups provisioning api?