google-apps

Google Apps Script Add-On Source Code/Security

本小妞迷上赌 提交于 2019-12-07 17:36:46
问题 I'm building a Google Apps Script Add-On and wanted to know whether anyone can access the underlying source code when I publish it to the Marketplace? I want to store a password/private key in the code and wanted to make sure no one who installs the app can access it. Using a Google Apps Script Library allows a user to use their own script to step into the source code, so that's an example of a public library whose source code is visible to the end user. Failing that, is there a better

Creating a Google Apps Script which Automatically Executes on Upload

此生再无相见时 提交于 2019-12-07 17:18:38
问题 I have an interesting fairly simple problem I am trying to solve but I am at a loss on the proper code to get this to working correctly. Basically, I have an very old local application running which allow me to print a receipt of a transaction. I have the ability to enable this receipt to be printed to a specific file within a specific directory on my computer or I can set it up to print out automatically to a printer on my computer. Currently I print the data out to a file, then copy the

Non-admin read-only access to Google Admin SDK

别说谁变了你拦得住时间么 提交于 2019-12-07 16:26:46
问题 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 to read the profile of any user on the domain (of course, we will respect ACLing settings and profile sharing settings). However, despite checking every Google Apps Admin setting I can find, my calls calls to the Directory API

Provisioning Api using java

陌路散爱 提交于 2019-12-07 13:15:50
问题 Hi i'm working in java and tried to retrieve all the user in the domain for that i used Provisionin api............ Its working good But my idea is to Use 2-legged OAuth to retrieve the users from the domain Is it Possible? I don't how to specify the URL please Help me And i tried the following the program final String CONSUMER_KEY = "example.com"; final String CONSUMER_SECRET = "12345678122154154df9"; final String DOMAIN = "example.com"; GoogleOAuthParameters oauthParameters = new

How do you add a Google Calendar to all users for a domain?

吃可爱长大的小学妹 提交于 2019-12-07 12:37:21
问题 I am having trouble figuring out how to add a calendar to all of a domain's users' CalendarList . So far I can successfully create the Calendar and create a domain wide ACL but I don't know how to insert the calendar into domain users' lists. Using the ruby client API it looks something like this: client = Google::APIClient.new service = client.discovered_api("calendar", "v3") calendar_response = JSON.parse(client.execute(:api_method => service.calendars.insert, :body => JSON.dump({"summary"

Sharing a Google Drive file without sending notification email

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 06:01:15
问题 I am using Google Drive Java API. I need to copy a file from one Google domain to another, so my approach is the following: authenticate with source domain service account share file with user in destination domain authenticate with destination domain service account and impersonate the user copy the original file from origin domain to destination domain delete the share permission from the original file Everything works as expected except that I don't want the destination owner to receive

Consent screen appearing after Google Apps installation using oauth2 while it should not

China☆狼群 提交于 2019-12-07 05:45:30
We have recently migrated our app to oauth2 in the Google Apps Marketplace. While the installation process goes very well, the first time the admin launch the app, a consent screen appears for the scopes that have already been accepted at the domaine level. The call to oauth2 at the authentication is the following: https://accounts.google.com/o/oauth2/auth?response_type=code &client_id=.... &redirect_uri=... &scope=email%20profile &state=.... &access_type=online &approval_prompt=auto &include_granted_scopes=true &hd=... I do not see any reason for the consent screen to appear again. Any idea?

How do I access other users calendars with google calendar v3?

本秂侑毒 提交于 2019-12-07 03:23:57
问题 I am using the Google Calendar (v3) API, with google apps and am wanting to use a single oauth2 credential to determine what users are free/busy at any given point. I am wanting to use this: https://developers.google.com/google-apps/calendar/v3/reference/freebusy/query But to use this I need to get all the calendar ids for all the users. I cannot do this as the java client for the google calendar can only retrieve calendars of the user who owns the credential. Note: I have access to all the

send email on Google App Engine from custom domain

为君一笑 提交于 2019-12-07 03:05:29
What I have done: I have added my domain app.mydomain.com to my app engine project, and can successfully visit id.appspot.com using app.mydomain.com. I have registered mydomain.com on google app for business. The problem: The problem is -- I am NOT able to send emails using @mydomain.com address. If I register an info@mydomain.com as an developer, this will probably solve the problem, but we need to send from more than one address, and I don't think registering a new developer for each address is reasonable. Anybody knows how to solve this? Thanks! You have two options: Register all emails

Use variable value from .gs file in custom HTML sidebar

喜欢而已 提交于 2019-12-06 23:41:06
I have a google sheet where I have scripted a custom sidebar. Within the sidebar, I want to display the value of column I within the active row. I've managed to work out the script to store the variable 'I' when the sidebar is opened: var hotelName = "" function openSidebar() { var html = HtmlService.createHtmlOutputFromFile('index'); SpreadsheetApp.getUi().showSidebar(html); var ss=SpreadsheetApp.getActiveSpreadsheet(); var s=ss.getSheetByName("Contract Registry Document"); var row=s.getActiveCell().getRow(); var column=9; hotelName = s.getRange(row, column).getValue(); Logger.log(hotelName);