gsuite-addons

How to delete User Property Services when User deletes G-Suite Add-on

吃可爱长大的小学妹 提交于 2021-02-11 17:05:54
问题 I'm developing a G-Suite add-on that is storing user auth tokens for an external API within User Property Services as Google recommends. I'm planning to implement the OAuth2 Service as well for publication purposes. My assumption would be that when a user deletes an add-on, the property services associated with that user (and thereby their auth tokens) are deleted as well. However, I haven't found any documentation that says Google deletes a users property services storage when a user

How to delete User Property Services when User deletes G-Suite Add-on

雨燕双飞 提交于 2021-02-11 17:05:41
问题 I'm developing a G-Suite add-on that is storing user auth tokens for an external API within User Property Services as Google recommends. I'm planning to implement the OAuth2 Service as well for publication purposes. My assumption would be that when a user deletes an add-on, the property services associated with that user (and thereby their auth tokens) are deleted as well. However, I haven't found any documentation that says Google deletes a users property services storage when a user

Can't serve HTML on the Google Apps Script callback page in a GMail add-on

☆樱花仙子☆ 提交于 2021-01-28 18:12:05
问题 I am working on a GMail add-on that connects to a third-party service through OAuth2. To obtain the authorization code the following redirect URI is used: https://script.google.com/macros/d/[SCRIPT_ID]/usercallback . Here's a snippet that triggers authorization: var stateToken = ScriptApp.newStateToken() .withMethod( "authCallback" ) .withTimeout( 120 ) .createToken(); var authUrl = _authBaseUrl + "&client_id=" + encodeURIComponent( _clientId ) + "&redirect_uri=" + encodeURIComponent(

Can't serve HTML on the Google Apps Script callback page in a GMail add-on

混江龙づ霸主 提交于 2021-01-28 18:03:28
问题 I am working on a GMail add-on that connects to a third-party service through OAuth2. To obtain the authorization code the following redirect URI is used: https://script.google.com/macros/d/[SCRIPT_ID]/usercallback . Here's a snippet that triggers authorization: var stateToken = ScriptApp.newStateToken() .withMethod( "authCallback" ) .withTimeout( 120 ) .createToken(); var authUrl = _authBaseUrl + "&client_id=" + encodeURIComponent( _clientId ) + "&redirect_uri=" + encodeURIComponent(

G Suite Marketplace Add-on OAuth: Error 400: invalid_request Account restricted

泄露秘密 提交于 2021-01-28 05:13:31
问题 Has any Google Add-on developers received this error when a user trys to install: Error 400: invalid_request Account Restricted This only happens to some users even if the app is whitelisted in the domain admin console of the user. Our app is listed on the G Suite Marketplace and is approved and verified, the OAuth consent screen works for most users. The user is able to see the consent screen but as soon as they click Accept they get this error: 回答1: I had the same issue with one of my G

Cannot create conference with 3rd party Conference Solution from conference solutions Dropdown in Google Calendar

浪子不回头ぞ 提交于 2020-06-28 03:56:21
问题 I am creating G-Suite add-on to integrate 3rd part conference solution with Google Calendar events. I added chosen 3rd party Conference Solution to manifest file: { "timeZone": "America/Denver", "dependencies": { "enabledAdvancedServices": [{ "userSymbol": "Calendar", "serviceId": "calendar", "version": "v3" }] }, "exceptionLogging": "STACKDRIVER", "oauthScopes": [ "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www

My GSM Gmail addon does not show the card

空扰寡人 提交于 2020-06-01 05:35:11
问题 I have built a GSM add on and published it for my domain. I built the code, on Google Apps Script and set it up in Google API Console. I installed it for my domain, but it does not show the card in Gmail It should show in the sidebar, and in the compose window. It works fine when I install the head version from within google apps script, but then I publish it to GSM for users in my organization it doesn't work. The purpose of the addon is to collect information from fields in a card and use

My GSM Gmail addon does not show the card

倖福魔咒の 提交于 2020-06-01 05:35:10
问题 I have built a GSM add on and published it for my domain. I built the code, on Google Apps Script and set it up in Google API Console. I installed it for my domain, but it does not show the card in Gmail It should show in the sidebar, and in the compose window. It works fine when I install the head version from within google apps script, but then I publish it to GSM for users in my organization it doesn't work. The purpose of the addon is to collect information from fields in a card and use

Log-in to an external site from Gmail Addon

落爺英雄遲暮 提交于 2020-05-17 03:53:52
问题 First of all, sorry for my bad English :) I am building a Gmail addon which integrates file uploading to an external website using their API. The API have an auth endpoint which uses plain authorization flow i.e. takes email and password of a user to authorize and return authorization token. That token is then used in the subsequent call of file uploading process. My question is, it has been mentioned in gmail addon guide that an app should use oAuth when connecting to a third-party service.

ReferenceError: ConferenceDataService is not defined

Deadly 提交于 2020-05-15 22:52:49
问题 I am trying to develop google calendar add-on like zoom meeting. In appsscript.json file, below code is there. "calendar": { "conferenceSolution": [{ "onCreateFunction": "createConference", "id": "1", "name": "Meeting", "logoUrl": "https://companyxyz.com/images/logo192.png" }], "eventOpenTrigger": { "runFunction": "buildSimpleCard" }, "currentEventAccess": "READ_WRITE" } } In Calendar.gs, below code is there. function createConference(e) { Logger.log(e); var dataBuilder =