Authorize Gmail (OAuth2)
Authorize a Gmail/Google account with OAuth 2.0 (Desktop app) and open a connection for sending, reading, labelling and managing mail. Caches a refresh token for silent reconnects.
Overview
Authorize Gmail (OAuth2) is a no-code automation step in the Gmail category of AutoFlowRPA. It performs its action in a single step when the workflow reaches it. You can configure 5 parameter(s) to control exactly how it behaves. It is one of 369 commands you can drag into a workflow in the visual builder — no scripting required.
What it does
Authorize a Gmail/Google account with OAuth 2.0 (Desktop app) and open a connection for sending, reading, labelling and managing mail. Caches a refresh token for silent reconnects.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Connection name | variable | Required | gmail | Name of the connection created by 'Authorize Gmail'. |
| client_secret.json (optional) | file | Optional | OAuth Desktop-app client file. Or use Client ID + Secret below. Supports variables | |
| Client ID (optional) | string | Optional | Supports variables | |
| Client Secret (optional) | string | Optional | Supports variables | |
| Token cache file (optional) | file | Optional | Default: %APPDATA%/AutoFlowRPA/gmail_token_<connection>.json Supports variables |
How to use Authorize Gmail (OAuth2)
- 1
Open AutoFlowRPA and drag the Authorize Gmail (OAuth2) command from the Gmail group onto the canvas.
- 2
Set its parameters in the side panel — Authorize Gmail (OAuth2) has 5 configurable field(s).
- 3
Connect it into your workflow and press Run. Everything executes locally on your machine.
Frequently asked questions
What does the Authorize Gmail (OAuth2) command do?
Authorize a Gmail/Google account with OAuth 2.0 (Desktop app) and open a connection for sending, reading, labelling and managing mail. Caches a refresh token for silent reconnects.
Which group does the Authorize Gmail (OAuth2) command belong to?
Authorize Gmail (OAuth2) is part of the Gmail group. AutoFlowRPA ships with 369+ ready-made commands you can combine without code.
Does the Authorize Gmail (OAuth2) command take any parameters?
Yes — Authorize Gmail (OAuth2) has 5 configurable field(s), all editable in the visual node editor.
More Gmail commands
Ready to automate your busywork?
Start your free 30-day trial today. No credit card, no commitment.