google-admin-sdk

GoogleApps java client information

蹲街弑〆低调 提交于 2019-12-23 02:59:14
问题 I am in a way of writing the java client on GoogleApps for managing the users and groups.I previously worked on the provisioning api and which is now deprecated. As from the info, Admin Sdk's directory api need to be used. I went to the links that were given but i couldnt find any sample client to start working on the directory api. Please guide me on to get the info or a sample client to start with Thanks 回答1: You are right. There is no (Admin SDK) Directory API sample to follow (list of API

Google Admin Directory API: Add User Employee Details

拟墨画扇 提交于 2019-12-23 02:42:09
问题 I already have a working function for adding user using Google Admin Directory: string password = Random_Password(); User newuserbody = new User(); UserName newusername = new UserName(); UserOrganization newuserorg = new UserOrganization(); newusername.GivenName = GivenName; newusername.FamilyName = FamilyName; newuserbody.Name = newusername; newuserorg.Department = Department; newuserorg.CostCenter = Country; newuserorg.Title = JobTitle; newuserbody.Organizations = newuserorg; newuserbody

Using service account to access Google Admin Report SDK

妖精的绣舞 提交于 2019-12-23 02:08:06
问题 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 to this service account. Is this just not possible? Anyone have any ideas? PrivateKey serviceAcountPrivateKey = null; try (InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("insta2.p12")) { serviceAcountPrivateKey =

AdminSettings API using service account auth/keyword failures

有些话、适合烂在心里 提交于 2019-12-20 07:23:50
问题 Trying to retreive domain number of users, 'GetCurrentNumberOfUsers()', using AdminSettings API via a Service Account in Python . Enabled delegation wide authority and scope, but getting errors. I have used service account for Calendar API, Directory API, EmailSettings API, but not working for AdminSettings. Tried sample code at: github.com/Khan/gdata-python-client/blob/master/samples/apps/adminsettings_example.py but get 'Authorization required' error while using correct credentials for

How to update a user's externalId using Java

∥☆過路亽.° 提交于 2019-12-20 07:04:12
问题 I'm trying to update a user with an externalId based on the Google Admin SDK documentation. UserExternalId externalId = new UserExternalId(); externalId.setType( "account" ); externalId.setValue( "test" ); User user = new User(); user.setExternalIds( externalId ); try { User update = directory.users().update( "USERKEY", user ).execute().setExternalIds( externalId ); LOGGER.info("Response from google: " + update.toPrettyString()); User full = directory.users().get( "USERKEY" ).setProjection(

404 Resource Not Found: domain with Google Directory API

限于喜欢 提交于 2019-12-19 10:17:05
问题 I followed the quick start and am attempting to create a user using the google-api-ruby-client. I've set up access in the google api console. And I can get this to work using the API explorer. But when I try using the ruby client, I'm getting a resource not found: domain error. Here's the code: def self.create_user # Initialize the client. client = Google::APIClient.new( :application_name => 'MYAPP', :application_version => '0.0.1' ) # Authorization # Load our credentials for the service

Use bash curl with oauth to return google apps user account data? [closed]

柔情痞子 提交于 2019-12-17 06:10:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am looking for a fairly simple method to use curl to return information about a batch of users accounts (like createddate or lastlogin) in google Apps. I am very inexperienced with curl and the Google Apps api's. Does anyone know of a good introductory article on how to use curl with Oauth to request user

Getting 500 “Backend Error” when using Google Groups Migration API

早过忘川 提交于 2019-12-14 03:49:27
问题 I am attempting to write an app in Python to allow users to migrate their LISTSERV archives to Google Groups for our domain. When attempting to call archive.insert (https://developers.google.com/admin-sdk/groups-migration/v1/reference/archive/insert), I receive an HttpError 500 "Backend Error". I am reading in the archive like so: import mailbox mailbox.mbox('path/to/archive') When iterating through the resulting messages in the mbox object, calling the .as_string() function results in

Delegate domain wide authority for a script bound to Google Forms

旧巷老猫 提交于 2019-12-13 07:11:27
问题 I want to get and set auto forwarding details for a user in the company domain. My admin made me a delegated admin so that I can fetch user data using AdminDirectory.Users . However, when I try to fetch auto-forwarding/Label/Filter data for a user using their userID, the following error is thrown : Delegation denied for some.user@domain.com This is the line that evoked the error : var labels = Gmail.Users.Labels.list(user.id); It seems that this can be carried out by delegating domain-wide

Discovery Document for Google Email Migration API v2?

扶醉桌前 提交于 2019-12-13 07:08:19
问题 Today Google announced a new version of the Email Migration API. The API appears to follow Google's normal REST format but I've been unable to determine the service name and version information for the API in order to use it with the google-api-python-client. Is there a discovery document for the new API and if so what is the service name and version? 回答1: The discovery document was slightly delayed from the actual release, but it's now available through the discovery service or directly here