backendError accessing users.list in Admin SDK - google-apps-marketplace

Our customers are getting errors trying to import users from their Google Apps domain into our application using users.list in the Directory API (Admin SDK). This was previously working, but for the past few days we've been seeing the following errors.
OAuth users.list.execute error: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Service unavailable. Please try again", "reason" : "backendError" } ], "message" : "Service unavailable. Please try again" }
Does the Apps Marketplace app have to be enabled for the entire domain, or should this still work if it's enabled for a specific OU?

Related

Google receipt validation - 401 - permissionDenied

I want to make Google receipt validation. I set everything by Marc Greenstock. When I try verified purchase I get response permissionDenied. For me is everything correct and I don't know how to find a mistake. The user has administrator role in Google Play Developer console.
Google developer console:
I enabled "Google Play Android Developer API"
I created service account keys with role Owner
I downloaded JSON file
Google play Developer console:
Link correct project
For correct user set administrator role. The same user is in the file.
Response:
{
"code" : 401,
"errors" : [ {
"domain" : "androidpublisher",
"message" : "The current user has insufficient permissions to perform the requested operation.",
"reason" : "permissionDenied"
} ],
"message" : "The current user has insufficient permissions to perform the requested operation."
}
I tried friend private_key, client_id and client_email and everything works fine. Code is good. I something forgot during configuration but I don't know what.
I forgot to add scope ".../auth/androidpublisher" in Google developer console.
After you add scope you should save credentials at the bottom of page.

How to get directory contacts from gmail?

I saw some of the posts to get directory contacts using contacts API implemented under GData that is deprecated. So is there any other way to get organization contacts via People API or Directory API for user?
I tried to get Organization contacts for user using Directory API based on the link. Retrieve a user as a non-administrator
I have done the steps mentioned in the below link :
Turn the global Directory on or off
Still i am getting following error.
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Not Authorized to access this resource/api",
"reason" : "forbidden"
} ],
"message" : "Not Authorized to access this resource/api"
}
My Questions:
Can user get organization contacts under directory?
If yes, what Api need to use ?

Google+ Domains API - You do not have permission to execute this method.

Enabled Google+ Domains API.
Added Restrictions URL.
But still when i try this API from google api-explorer and python code both the result is throwing this error.
403
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}
Anybody can help us.
The user you are authenticated as does not have a Google domains account. Try and run authentication again with the correct user.
Note: Google+ domains is like google apps and gsuite. It is not Google+ the social media website.

How to use Google Apps Marketplace LicenseNotification API

I'm trying to use LicenseNotification API from the test page here for a test app I have built, published and already installed in one of our test domains.
App status on the CWS is published (published, GAM: published) and the app works fine.
I am logged in using the app project owner and I enabled OAuth 2.0 Authorization switch. Set the applicationId (which one is right, the one from Developers Console Marketplace SDK configuration or the one from CWS aka element id? I tried both..), clicked on Execute and I get the following response
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Not authorized to access the application ID"
}
],
"code": 403,
"message": "Not authorized to access the application ID"
}
}
What am I doing wrong?
EDIT: My app is published but visibility is set to "private" for my test domain only.

How to use google plus domain api

I can call any Google+ API from the Google API Explorer, but any Google+ Domain API says "You do not have permission to execute this method." and returns next error:
403 Forbidden
{
"error": {
"errors": [{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}],
"code": 403,
"message": "Forbidden"
}
}
The same issue I have when use google+ domain .net api library.
Does Google+ Domain API work? Are there some live examples?
The two most likely reasons for getting this error with the Domain API are:
You don't have the Domain API enabled in the developer's console. You need to enable it separately from the Google+ API.
You aren't using it with a Google Apps account, but with a regular GMail account, or your Apps admin hasn't enabled Google+ for the Apps domain.

Resources