google-admin-sdk

Google Directory API using Service Account via Proxy

拟墨画扇 提交于 2019-12-25 06:37:03
问题 So I am new to using Google API's. My need is to read a user's account status in the company's domain via a Service Account. Am using the Admin SDK i.e .Directory API's for this. Due to organization's network and security policies, the call has to be made via a proxy server . I cannot find any help on calling a Google API while using a Service account and via a proxy server . I did find help on Calendar service, or Youtube etc via proxy , but none on the DirectoryService. Could someone please

Google Admin Directory API SDK User Last Logged In Not Fully Accurate

半世苍凉 提交于 2019-12-25 04:45:19
问题 I use the .Net API for managing my organization's users within Google Apps. Within the directory API you can "RetrieveUser". This returns a User object that has a date property of "LastLoginTime". Google used to separate out their Last Login Time for an account into three categories using the previous api. last_login_time - the last time you directly logged into a google service using a UI last_web_mail_time - the last time you logged into gmail.com webmail last_pop_time - the last time you

Requested scopes not allowed

痞子三分冷 提交于 2019-12-25 04:34:24
问题 I'm trying to fetch a user from Google Directory API with the following request: Collection<String> SCOPES = Arrays.asList("https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www.googleapis.com/auth/admin.directory.user"); URL url = getClass().getResource("privatekey.p12"); GoogleCredential credential = new GoogleCredential.Builder() .setJsonFactory(request.getJsonFactory()) .setServiceAccountId("foobar.com") .setServiceAccountScopes(SCOPES) .setTransport(new

GoogleJsonResponseException: Not Found error when using Gmail API sendAs.patch method to change signature for user on domain

佐手、 提交于 2019-12-24 20:03:47
问题 I want to update signature of a domain user via Google Apps Script as G Suite administrator. I followed Mike's example here using HTTP Request to the Gmail API and was able to it to work. Here is the summary what I did: Enabled Gmail API in Advance Google Services and in Google API Console Added OAuth2 for Apps Script library to my project (since Apps Script doesn't provide built-in support for OAuth2 protocol) Created a Service Account for my project Delegated domain-wide authority to the

Google Directory API return access_denied when call groups().list().execute()

余生颓废 提交于 2019-12-24 14:19:37
问题 Library : google-api-services-admin-directory_v1-rev11-1.16.0-rc.jar API Console : Service Account Domain 3rd party OAuth Client Access Setting https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.user Getting users list is work, but groups list return error (access_denied) Source scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_USER); scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_GROUP); scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_GROUP_MEMBER)

Can non admin users get list of google calendar resources?

人盡茶涼 提交于 2019-12-24 11:23:44
问题 I understand that the list of rooms (google calendar resources) can only be accessed using the Calendar Resources API (https://developers.google.com/admin-sdk/calendar-resource/). But, it seems that domain admins credentials are needed to access it. Is there a way for non-admin users to get a list of all rooms using the API, similar to what they can get from the google calendar web UI by selecting 'add rooms'? 回答1: Looks like the calendar resource API does allow non-admin accounts to list the

Accessing Google Reseller API using Service Accounts

倾然丶 夕夏残阳落幕 提交于 2019-12-24 03:05:54
问题 We are having issues accessing the reseller api using service accounts. The example with client secrets work well, but we would need to deploy this in k8s (Kubernetes Engine) without the need to refresh the oauth session on a recurring basis (especially doing this once, as it is kinda hard in a docker container). While there is a lot of documentation on how to do this with python we could not find any way of getting access using a service account. We tried two accounts, the default compute

Reports API 503 Backend Error

混江龙づ霸主 提交于 2019-12-23 14:54:22
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Reports API 503 Backend Error

空扰寡人 提交于 2019-12-23 14:54:09
问题 For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" }], "message" : "Backend Error" } Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem?

Listing users using Google Admin SDK in Java

邮差的信 提交于 2019-12-23 04:43:57
问题 I want to list users in a domain as defined in google. I saw that it's available through the Google Admin Directory SDK. Although, I couldn't find any examples or documentation how can I use it in Java. I already have got the authorization part. I'm just not sure which objects should I use from the API and how. Thanks! 回答1: Here is an example with the relevant imports From the docs (https://developers.google.com/admin-sdk/directory/v1/reference/users/list) As an account administrator, you can