google-admin-sdk

Google AdminDirectory api in not updating addresses

放肆的年华 提交于 2020-02-07 05:29:06
问题 I am trying to update user's reach profile attributes with below apps script. It is updating all fields except only addresses. Kindly suggest if I am missing anything. Below is the part of code: var resource = { organizations: [{title: designation, department: department, }], addresses: [ { locality: "Pune", streetAddress:"Kothrud", postalCode:"411038", primary:true, region:"Maharashtra", type: "work", } ], phones: [{ type: "work", value: phone, }, { type: "mobile", value: mobile, }, {

Creating a group with Admin SDK Directory API in Google Apps Script - Error 403

喜欢而已 提交于 2020-01-23 03:31:08
问题 I've read through all of the relevant pages in the Admin ADK Directory API documentation and several questions on stackoverflow, and I'm still stuck. I'm trying to use Google Apps Script (container-bound within the Script Editor of a Google Sheet) to create a group. I am the super admin of my Google Apps domain, and the scripts will be running as me. Here's what I did in the Script Editor so far: Went to Resources - Advanced Google Services... - turned on the Admin Directory API Clicked the

Directory API moving an organization unit using google api for java to another organization unit

瘦欲@ 提交于 2020-01-22 03:39:32
问题 I am testing moving an organization unit from under one parent to another. Right now i have a following OUs: YourDomain.com -Middle Schools --Grade07 -Elementary Schools --Grade01 --Garde02 I want to move Grade 07 to Elementary School OU for example. Here is my code snippet: List<String> list = new ArrayList<String>(); list.add("Middle Schools"); list.add("Grade 07"); OrgUnit ou = sDirectory.orgunits().get("my_customer", list).execute(); ou.setParentOrgUnitPath("/Elementary Schools"); ou

Directory API moving an organization unit using google api for java to another organization unit

有些话、适合烂在心里 提交于 2020-01-22 03:39:06
问题 I am testing moving an organization unit from under one parent to another. Right now i have a following OUs: YourDomain.com -Middle Schools --Grade07 -Elementary Schools --Grade01 --Garde02 I want to move Grade 07 to Elementary School OU for example. Here is my code snippet: List<String> list = new ArrayList<String>(); list.add("Middle Schools"); list.add("Grade 07"); OrgUnit ou = sDirectory.orgunits().get("my_customer", list).execute(); ou.setParentOrgUnitPath("/Elementary Schools"); ou

Create gmail account for a domain using Google Admin SDK Directory API in Java

雨燕双飞 提交于 2020-01-20 05:26:14
问题 How to create a gmail account for a domain in Java using the Google Admin SDK Directory API? Is there an example somewhere? The Google documentation is terrible regarding this issue. Marcos 回答1: This is a basic example showing how to create a user using the Directory API of the Admin SDK (https://developers.google.com/admin-sdk/directory/v1/reference/users/insert). I’ve not included the OAuth 2 initialization code as this is fairly standard and similar to other Google APIs. You need to

Create gmail account for a domain using Google Admin SDK Directory API in Java

拈花ヽ惹草 提交于 2020-01-20 05:25:04
问题 How to create a gmail account for a domain in Java using the Google Admin SDK Directory API? Is there an example somewhere? The Google documentation is terrible regarding this issue. Marcos 回答1: This is a basic example showing how to create a user using the Directory API of the Admin SDK (https://developers.google.com/admin-sdk/directory/v1/reference/users/insert). I’ve not included the OAuth 2 initialization code as this is fairly standard and similar to other Google APIs. You need to

How can I create google apps user account programatically

老子叫甜甜 提交于 2020-01-16 18:46:54
问题 My organisation (Polish Scouting Association) has it's own google apps domain, and every scout is entiteled to have one e-mail address. We decided to create an WWW application in which user can authorize, and sets up his own google apps account. To do this we need to have a progammatic, non-interactive a way to create google apps accounts. To be clear: User logs in to our application using credentials we use throught out organisation He initiates google apps account creation Our application

How to create a user with the Admin Directory api using the google-api-ruby-client?

痴心易碎 提交于 2020-01-14 13:15:35
问题 I've been trying a few combinations but can't seem to come up with something that works. More information about the API I'm asking about can be found here https://developers.google.com/admin-sdk/directory/v1/reference/users/insert . I have a feeling I'm just not setting up the request correctly. The following bit of code is known to work. I use it to set up the client that is able to query all the users. client = Google::APIClient.new(:application_name => "myapp", :version => "v0.0.0") client

How to create a user with the Admin Directory api using the google-api-ruby-client?

北城余情 提交于 2020-01-14 13:15:27
问题 I've been trying a few combinations but can't seem to come up with something that works. More information about the API I'm asking about can be found here https://developers.google.com/admin-sdk/directory/v1/reference/users/insert . I have a feeling I'm just not setting up the request correctly. The following bit of code is known to work. I use it to set up the client that is able to query all the users. client = Google::APIClient.new(:application_name => "myapp", :version => "v0.0.0") client

Determine G-Suite Edition

筅森魡賤 提交于 2020-01-14 05:52:10
问题 I would like to have different pricing and licensing options for a Drive enabled app I am developing, based on the G-Suite edition that the user's account is provisioned with. What API do I use to determine the Edition used for the currently logged in user? Also, what is the recommended practice (or options) for who maintains my app's billing with business/enterprise? Can I determine if the user is a system admin and then show only them the billing/invoice sections of my app? 回答1: Only