google-directory-api

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(

Using Google's Directory API for .Net?

大城市里の小女人 提交于 2019-12-20 04:19:50
问题 I am trying to create my first console app using Google's Directory API for .Net. I have a code based in a Google's sample. It shows me a couple of errors, one of them is when I am trying to create the service: var service = new DirectoryService(new BaseClientService.Initializer() { Authenticator = auth, ApplicationName = "Create User", ApiKey = "<your API Key from Google APIs console>" }); It shows me: "Error 3 'Google.Apis.Services.BaseClientService.Initializer' doesn't contain a definition

Using Google's Directory API for .Net?

梦想的初衷 提交于 2019-12-20 04:18:03
问题 I am trying to create my first console app using Google's Directory API for .Net. I have a code based in a Google's sample. It shows me a couple of errors, one of them is when I am trying to create the service: var service = new DirectoryService(new BaseClientService.Initializer() { Authenticator = auth, ApplicationName = "Create User", ApiKey = "<your API Key from Google APIs console>" }); It shows me: "Error 3 'Google.Apis.Services.BaseClientService.Initializer' doesn't contain a definition

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

Directory API, User organizations- name field. Where does it come from?

百般思念 提交于 2019-12-12 18:24:33
问题 The Google Directory API https://developers.google.com/admin-sdk/directory/v1/reference/users/get returns following kind of organizations data for a User. However in the Apps Admin console I can not find where the corresponding organisations name "Company Title" is defined. From where does it come from or how to edit that data? This is also inconsistent, since for some Users in this same domain the "name" field is missing completely? "organizations": [ { "name": "Company Title", "title":

Maximum Size of patch to customSchemas?

大憨熊 提交于 2019-12-12 17:30:12
问题 I'm having an issue with the SDK. I followed this guide to get SSO with AWS. I'm able to add 4 roles using my code, but after that I get a 413. My schema contains all of the roles under the SSO role array. So, each patch I make requires me to resubmit the entire role array according to the docs: Note about arrays: Patch requests that contain arrays replace the existing array with the one you provide. You cannot modify, add, or delete items in an array in a piecemeal fashion. Python Snippet:

Admin SDK, Directory API, Users: list - Any PHP examples on how to do this?

假装没事ソ 提交于 2019-12-12 06:43:50
问题 Google Apps for Business linked to Apps Engine account Cloud Console -> Registered Apps -> {name} -> Web Application -> OAuth 2.0 ClientID Cloud Console -> Admin API (On) Google Apps Console -> Security -> API Access (checked) " -> " -> 3rd party OAuth -> API Clients ({ClientID}.apps.googleusercontent.com) " -> " -> " -> API Scopes (https://www.googleapis.com/auth/admin.directory.user) Here is what I have so far, require_once 'google/appengine/api/app_identity/AppIdentityService.php'; use

directory api - get users using orgName

╄→гoц情女王★ 提交于 2019-12-12 04:53:43
问题 I have four sub-organizations defined. (/AdminOrg, /subOrgA, /SubOrgB, /subOrgA/SubOrgAA) my directory.orgunits.list query return below data. I store the return array in a variable called orgUnits[]: http://pastebin.com/Kzud6SAq I have 4 users in my organization. one in each sub-organization. the users.list return below data: http://pastebin.com/6ttSgDSe I am trying to get no. of users within an organization (without including sub organizations in them) Option 1: The query directory.users

google admin SDK for non admin-user

筅森魡賤 提交于 2019-12-12 01:15:35
问题 I created google app in developer console. Enable Admin SDK Enable API access In "Manage OAuth Client access" i added "Authorized API client" with "https://www.googleapis.com/auth/admin.directory.user" scope. Further, i want to get users from my domain. JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance(); HttpTransport httpTransport = GoogleNetHttpTransport.newTrustedTransport(); ArrayList<String> scopeList = new ArrayList<>(); scopeList.add(DirectoryScopes.ADMIN_DIRECTORY_USER

Is there any way to use an “or” operator in Google Directory API users.list query?

我只是一个虾纸丫 提交于 2019-12-11 09:41:24
问题 I want to build a search query for Google domain users using users.list Google Directory API . I tried to build a query according docs, which will select all users with givenName or familyName starts e.g. on letter "m". I wrote the query: givenName:m* or familyName:m* , but it doesn't work. Only givenName:m* familyName:m* works but it inserts "and" operator between clauses. In docs stays: Multiple clauses are separated by whitespace and are implicitly joined by an "and" operator. Can I only