Google Admin API - Enable chats in IMAP setting - imap

I'm writing some code which will connect to a user's Google apps email account via IMAP and make a complete archive of everything. In this process, I would like to back up the google chat history that is located in the "Chats" label. To do this however, I need to tick the "Show in IMAP" checkbox in the labels window. Is there a way to set this automatically via the Google admin api? I know I have access to read the user's labels and create my own, but I didn't see any reference to modifying existing labels or setting this value.

Unfortunately there is no way to programatically set Chats to show in IMAP. Your app should attempt to access the folder and if it's not visible via IMAP, prompt the user with instructions for manually setting the Chats label to visible via IMAP.

Related

Team Apps using Graph API

I am looking at automating Group creation using Graph API in Teams. I can successfully do that by using following API
const result = await client.api('/groups').post(group);
What I am looking for is creating a Tab in that Group and then adding an Organisational app (Internal App) into that tab.
Here is the link for creating tabs in teams but could not see anything on adding app into that tab
https://learn.microsoft.com/en-us/graph/api/teamstab-add?view=graph-rest-1.0
Is it possible ? and if so, where can i see APIs and relevant documents.
Basically, to add a Tab, you need to have the content of that tab configured and waiting. There are two ways to do this:
point to a website directly - this would be equivalent of using the "Website" option in the UI to add a tab, and then inserting the address of the website. This is kind of what the Graph endpoint sample you linked to is doing, but you need to use the payload specified here. See the answer over here for more info: Channel Tabs in Teams through Graph-API
Use an existing registered App in Teams that has a "Tab" functionality. The same link I gave above has options for doing this, like Planner, or Word, or whatever. You would be able to do the same thing for your own custom app, but then the app needs to be built, and installed into the tenant app catalog (i.e. the internal company "store"), or the Teams "App Store". Read more about that here

Feature I want to add to my Amazon Connect scheduling app

So we wrote a React app that lets call center admins create holidays, special events, meetings and emergency conditions for Amazon Connect. In version 2.0 I would like to be able to allow admins to use an uploaded pre-recorded prompt and select that for an announcement from my React app. I have searched the API and it has no endpoint for listing or creating prompt. Does anyone else know if this is possible?
There is currently no API for Prompt Management. Right now, you would have to manually reference the ARN value of the Prompt to dynamically play it via a lambda within a contact flow. Just looked into this myself for a similar feature, and confirmed w/ AWS team.

Turn off unneeded Google Drive permission

In my app, I have requested users' permissions for their google sheets. However, there are 2 showing up. I don't think I need 1. because 2. is good enough. How can I turn it off or change to access only the spreadsheets opened or created with this app?
1. View and manage your spreadsheets in Google Drive
2. View and manage Google Drive files and folders that you have opened or created with this app
As per your comment, you are utilizing these two Services:
Spreadsheet Service
Requires authorization to access and manage sheets in drive. Even a single spreadsheet, regardless of the owner, requires this authorization.
Drive Service
Requires authorization to access and manage drive files. But this does not grant permissions to modify these files through other services such as the Spreadsheet Service .
Each of these require a different authorization set. Which is why you see two different requested permissions. This does not mean that the app now has access to every sheet on that users drive, it still only has access to the sheets that are appropriately shared with the user the script is executing as. See this answer as well, which is marginally related.
If you want to remove app-permission 1 from showing, you may manage users and limit app-specific permissions by using the "Role" drop-down to select a predefined role for a user or check individual boxes to turn on permission that apply to all apps in your account. Here's how:
Sign in to your Google Play Developer Console.
Click Settings.
On the left menu, click User accounts & rights.
Near the right side of a row, click the Settings Gear icon.
Select Add app specific rights.
Click the search box to find or select an app.
You can select multiple apps to add permissions for multiple apps at once.
Check boxes to add permissions.
Click Add rights.
To remove app-specific rights, click the X next to a permission on the User accounts & rights page.
Developer Console Help - Add developer account users & manage permissions might help.

Adding users to Gmail via API?

I have a web form that our HR department uses to add new employees. It adds them to the database, inserts them into Active Directory, and a few other things. We would like it to also create their Gmail account and subscribe them to groups (our current users are already in Gmail under our domain).
Everything I find requires OAuth2 for this, yet it seemingly requires a prompt. "Google displays a consent screen to the user".
Is there a way to do what I want behind the scenes without any sort of prompt?

Google Oauth prompt page- add more text?

I'm using GoogleBrowserClientRequestUrl to send the browser to the page prompting the user to allow my application access to their Google Docs account. This all works fine, but I'd like to know if you can add some extra information to that prompt page as well as the auto-generated stuff?
No, the only custom information that Google displays on that page is the product name and the product logo you specified in Google's API Console.

Resources