FAQ Database Discussion Community


Querying the Google Domain Shared Contacts API via service account

google-admin-sdk
I'm writing an application in C# that aims to query the Google Domain Shared Contacts API to retrieve (and eventually update/add/delete) all domain shared contact records. As this is not currently supported via the .NET client libraries, I have written a procedure to retrieve an oauth 2.0 token to include...

GoogleCredential Missing Access Token

java,google-admin-sdk
I am using the service account model and Google's Java API to retrieve and modify users. I am able to successfully create a GoogleCredential object using code similar to Google's example: GoogleCredential googleCredential = new GoogleCredentialBuilder() .setTransport(httpTransport) .setJsonFactory(jsonFactory) .setServiceAccountId(SERVICE_ACCOUNT_EMAIL) .setServiceAccountUser(SERVICE_ACCOUNT_USER) .setServiceAccountPrivateKeyFromP12File(P12_PRIVATE_KEY_FILE) .setServiceAccountScopes(Collections.singleton(GLOBAL_USER_AND_ALIAS_SCOPE)...

How to use nextPageToken in Google Apps Reseller API?

google-api,google-admin-sdk,google-reseller-api
I am writing a simple Java application that fetches all customer subscriptions from Google Apps Reseller using the Reseller API. However I am stuck at paging through the results as the max size is 100 per page and I cannot figure out the next page token. Here is the code...

Google service account and quotas for admin

google-app-engine,google-admin-sdk
As I'm completing the migration to the new API I stumbled on the daily API request quotas. What determines quota limits for admin requests? My application provisions accounts, groups, etc... in Google apps and I've got many locations using it. Do I need to set up a unique service account...

Where do I get Client Secret for Google Admin SDK?

google-admin-sdk
This documentation: https://developers.google.com/admin-sdk/directory/v1/quickstart/quickstart-java#step_1_enable_the_admin_sdk_directory_api Mentions that I need to have client secret, and the code sample lower on that page uses client secret. However, when i go to APIs and auth/Credentials here https://console.developers.google.com/project/[proj]/apiui/credential# I only can find clientId and private key instead. Is there some other place I should get client...

“Access denied” exception is thrown, though the account has access

php,google-admin-sdk,google-directory-api,google-php-sdk
I'm using a service account to delegate domain wide security in order to pull a user listing from our Google Apps for Education instance via the Directory API and the PHP client library. I'm fairly certain my service account has all the correct security because it's able to pull a...

Google Reports Audit Calendar stopped working

google-apps,google-admin-sdk,google-reporting-api,google-admin-settings-api,google-admin-audit-api
For some reason the report screen is stopped from five days ago. Any idea? ...

Using service account to access Google Admin Report SDK

google-admin-sdk,service-accounts
Is it possible to use a service account to access the Google Admin Report SDK? I have a very basic example I am trying to run and I always get a 400 error returned. I have validated the key and service ID are correct and I have even delegated authority...

what is the deprecation policy of google's appsforyourdomain clients

google-api-java-client,google-admin-sdk
It is clear that some of the client classes in the appsforyourdomain package are being deprecated by April 20th, 2015. I'm having trouble finding the deprecation status and replacement of these classes: com.google.gdata.client.appsforyourdomain.audit.AuditService com.google.gdata.client.appsforyourdomain.audit.MailBoxDumpRequest com.google.gdata.client.appsforyourdomain.audit.MailMonitor com.google.gdata.client.appsforyourdomain.AppsForYourDomainQuery com.google.gdata.client.appsforyourdomain.AppsPropertyService...

Non-admin read-only access to Google Admin SDK

google-apps,google-admin-sdk,google-directory-api
In a post on the Google Developers blog from September 23, 2014, it says: Read access to all domain users Historically, only admins have been able to access the data in the Admin SDK. Beginning today, any user (not just admins) will now be able to call the Directory API...

Using Dart googleapis_auth (0.2.2) to authorize Admin SDK Directory API in Google Apps domains with service account

dart,google-oauth,google-admin-sdk
I would like to authorize access to Admin SDK Directory API in Google Apps domains with a service account. As I understand it requires a JWT claim with a sub field and I can't find that in the pub package googleapis_auth (0.2.2). If it's missing: Is there a workaround? Will...

Google SDK Report dont get info

google-app-engine,google-admin-sdk,google-reporting-api
I have a app in GAE. This belongs to a domain. This app get info from Reports Api. If I ask for information 4 days ago, I get the information from doc and gmail. If I ask for information 3 days ago I get only the information of gmail. If...

delete user alias with the Admin Directory API java library

google-admin-sdk
I do not see a method with the java library to delete an alias from a user. Is there a way to do this? I tried using setAliases with a null value.

Google Admin SDK Directory API: Adding group as member with role “OWNER” gets error

google-api,google-admin-sdk,google-directory-api
Trying to use the new Google Admin SDK for some group creation and adding/removing members to those groups. This is actually just updating some code I had that was previously using the old provisioning API. I'm trying to add a group as a member of a group, with the role...

How to set user manager in Google Directory api

java,google-admin-sdk,manager
I have a requirement to set the manager field on each User within my Google Apps domain. Previously I've used the API to update organisations, phones addresses etc. However, I do not see where to actually set/update the user manager field. I'm using the Java client library to update the...

Retrieving XML of all Google Calendar Resources on a domain?

php,xml,curl,google-admin-sdk
I'm currently working on a form in PHP which would consolidate two different tasks: booking a space for an event, and registering the event for an online calendar. I have the Google Calendar piece nailed down with the API Client for PHP, but the Calendar Resources are still proving to...