Notion login (Google SSO, app.notion.com)
Log into Notion (app.notion.com) with Continue with Google, handling the Google account chooser and consent screen. Returns straight away if this browser is already signed in, and reports the Notion account email. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that already has a Notion account.
Input
email optionalGoogle account to pick in the chooser. Omit to use the first account listed.
Output
url requiredalready requiredloggedIn requiredaccount optionalNotion account email
FAQ
Invite workspace member (Notion)
Invite someone to a Notion workspace by email, with a chosen role and built-in verification. Records the People page before and after, returning invited / verified — proof the invite actually landed. dryRun (default true) fills the invite form and cancels without sending; set it to false to actually send the invite. Role defaults to "Restricted member" (available on all plans); "Workspace owner" is also supported. The "Member" role requires a paid Notion Plus plan and is rejected up front rather than silently opening a billing/upgrade dialog. Acts on the workspace currently active in the browser, so there is no workspace name to pass. Requires being signed into Notion with permission to invite members.
Remove workspace member (Notion)
Remove a member from a Notion workspace by email, with built-in verification. It records the member list before and after, returning removed / verified / collateralLoss — proof the right person disappeared and nobody else moved. Notion serves one of two different confirmation steps depending on the case, and both are handled. dryRun (default true) dismisses the confirmation without removing; set it to false to go through with it. Acts on the workspace currently active in the browser, so there is no workspace name to pass. Requires being signed into Notion as a workspace owner. Cannot remove the currently signed-in account itself — Notion routes that through a separate "Leave workspace" flow this script doesn't support, and it fails fast with a clear error rather than attempting it.
Create Notion page integration
Create an internal Notion integration scoped to a specific page and connect it to that page. Returns token, integrationId, pageId, integrationName. The token is shown only at creation, so capture it immediately.
