Invite team member (Stripe)
Automatically invite team member (Stripe) on dashboard.stripe.com. Invite someone into a Stripe team by email, with built-in verification. It records the member list and the pending invitations before and after the action, returning invited / verified / collateralChange — proof the right person was added and nobody else moved. Stripe membership is invite-based: the invitee stays pending until they accept, so this reports an invitation, not an active member. The role you ask for is matched against your account's own role list and defaults to the least privileged one; roles your account is not allowed to grant are reported up front with the list of ones it can. Stripe sometimes asks you to confirm your identity before it will apply a team change — when that happens the invitation is refused and this stops with a clear explanation instead of reporting success, so complete that confirmation in the dashboard and run it again. dryRun (default true) fills the form and stops before sending. Requires being signed into Stripe with team permissions. Pair with dashboard.stripe.com/delete_user, which also cancels a pending invite.
Input
email requiredEmail address to invite to the Stripe team.
role optionalRole name to grant, matched against this account's role list (e.g. "View Only", "Administrator"). Defaults to "View Only".
dryRun optionalWhen true (the default) the invite panel is filled in and then dismissed without sending. Set false to actually send the invite.
Output
email requireddryRun requiredinvited requiredafter optionalbefore optionalverified optionalroleMatched optionalroleRequested optionalcollateralChange optionalFAQ
Stripe Dashboard login (Google SSO)
Log into the Stripe Dashboard with Continue with Google, handling the Google account chooser and consent screen. Returns straight away if you are already signed in, and reports the Stripe user email. If Stripe asks for a two-step verification code it stops and says so instead of attempting it. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that is already a Stripe user.
Remove team member (Stripe)
Remove a member from a Stripe team by email, or cancel an invitation they never accepted — both cases are handled. It records the member list before and after, returning removed / verified / collateralLoss: proof the right person disappeared and nobody else moved. As a safety guard, the destructive click only fires when the confirmation dialog names the target email. It also reports the person's role and their last sign-in date, which is what reveals access still being used after someone left. dryRun (default true) reaches the confirmation step then backs out. Requires being signed into Stripe with team permissions.
Stripe Dashboard whoami (signed-in account)
Report which Stripe Dashboard user this browser is signed in as: the user email. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Stripe Dashboard scripts.
